answersLogoWhite

0

How will handle jsp and custom variable are same?

Updated: 8/16/2019
User Avatar

Wiki User

16y ago

Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: How will handle jsp and custom variable are same?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do youdeclare a variable in jsp?

You declare a variable the same in a JSP as you do in a servlet. Let's say you want to declare a String variable called "foo" and you wanted to assign it a value of "bar." You would do this: String foo = "bar"; Of course, in a JSP, any Java code needs to be enclosed within <% and %>.


What is tag lib directive in jsp?

The taglib directive in JSP is used to declare a set of custom tags defined in tag libraries that are used in the JSP page. It must be placed at the top of the JSP page and specifies the location of the tag library descriptor (TLD) file and the prefix to use when referencing the custom tags within the page. This allows developers to use custom tags in their JSP pages to encapsulate reusable functionality.


What is difference between custom JSP tags and beans?

They are two totally different concepts and are entirely different when compared to one another. The similarity is that - they both are used by JSP Pages to enhance the features and functionality of the JSP Technology


How you convert int to string in jsp?

The same way you would in a regular java program. int i = 10; String s = i + ""; after the above line of code the variable s will have "10" as a string value...


Is jsp is platform independents?

Yes. JSP is a java based technology and hence it is platform independent. So, you can run it in any environment. The same JSP that can run in a windows box can always run in a Linux box.


How does a JSP page handle run-time exceptions?

You can use the errorPage attribute of the page directive. If this attribute is defined in a JSP page, when a run time exception is encountered, the control will be transferred to this JSP page. This error page can access details of the Exception from the request and use it to display a logical message to the user.


What are jsp actions?

JSP actions are XML tags that direct the server to use existing components or control the behavior of the JSP engine. JSP Actions consist of a typical (XML-based) prefix of "jsp" followed by a colon, followed by the action name followed by one or more attribute parameters. There are six JSP Actions: < jsp : include / > < jsp : forward / > < jsp : plugin / > < jsp : usebean / > < jsp : setProperty / > < jsp : getProperty / >


Are you have project java have jsp plus jdbc plus swing?

No. JSP and Swings are two contrasting Technologies and cannot be used in the same application. And - JDBC can be used with both types of applications that use either JSP or Swings


How MVC work with JSP page?

In the context of JSP, the Model-View-Controller (MVC) pattern can be implemented by having the JSP act as the View to display data from the Model (usually Java objects) and the Controller can be represented by servlets or Java classes that handle business logic and interact with the Model. The JSP page is responsible for displaying the data provided by the Controller, maintaining a separation of concerns between the presentation (View) and business logic (Controller).


What is the difference between variable declared inside the declaration part and variable declared in scriptlet part?

Variable declared inside declaration part is treated as a global variable, which means after translation of jsp file into servletthat variable will be declared outside the service method as an instance variablethe scope is available to the complete jspVariable declared inside a scriplet will be declared inside a service method as a local variable and the scope is with in the service method.


What is acronym of jsp?

JSP stands for Java Server Pages


What is full from JSP?

JSP stands for Java Server Pages