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 is the purpose of the wait(), notify(), and notifyall() methods?
Is jvm a overhead?
What is a session? Can you share a session object between different theads?
Is there a guarantee of uniqueness for entity beans?
Why does the option tag render selected=selected instead of just selected?
What classes of exceptions may be caught by a catch clause?
What is the diffrence between a local-tx-datasource and a xa-datasource?
What is the argument type of a programs main() method?
Which container method is used to cause a container to be laid out and redisplayed?
Explain phantom read?
Can I have an action without a form?
What is permgen or permanent generation?
What is clustering? What are the different algorithms used for clustering?
Can you give me a simple example of using the requiredif validator rule?
What event results from the clicking of a button?