If I define a method in JSP scriplet <%..%>, where will it
go after translation into a servlet?
Answer Posted / prs01
It will give compilation error. In order to define a method
in JSP, it should be defined in the JSP declarations <%!..%
>, and it can be called in the JSP expression.
On translation, the method will be added outside all
methods in the servlet class.
| Is This Answer Correct ? | 35 Yes | 1 No |
Post New Answer View All Answers
How to deploy Jar, War files in J2EE?
Can I use multiple html form elements with the same name?
Do you think that java should have had pointers?
Explain what is synchronization?
What are transaction attributes?
How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!
how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.
What are the types of scaling?
What do you know about seam?
Describe activation process?
What if the static modifier is removed from the signature of the main method?
What value does readline() return when it has reached the end of a file?
What is the purpose of the notifyall() method?
Which javutil classes and interfaces support event handling?
What are the steps to write p-to-p model application?