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
What class is used to create Server side object ?
Name the class that is used to bind the server object with RMI Registry?
What are the services in RMI ?
Why does the tag url-encode javascript and mailto links?
What is the form of storage space in java?
What state does a thread enter when it terminates its processing?
For which statements does it make sense to use a label?
How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!
Explain about RMI Architecture?
What is the difference between the font and fontmetrics classes?
How a component can be placed on Windows?
Why is string immutable in java?
What is TL and its use?
How many times may an objects finalize() method be invoked by the garbage collector?
What is the difference between a menuitem and a checkboxmenuitem?