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
Explain the different types of memory used by jvm?
What if the static modifier is removed from the signature of the main method?
Where can I find seam examples and documentation?
What’s jboss cache in short?
What is Stream Tokenizer?
Is a class a subclass of itself?
which book is better for jdbc ,servlets and jsp
What is ripple effect?
Why does the tag url-encode javascript and mailto links?
What class is used to create Server side object ?
What is the purpose of the wait() method?
what are the activation groupworks?
What are the purpose of introspection?
What is the difference between RMI registry and OS Agent?
To what value is a variable of the string type automatically initialized?