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 are the different methods of identifying an object?
What is the argument type of a programs main() method?
Difference between swing and awt?
Can constructors be synchronized in java?
What is ripple effect?
wahts is mean by dynavalidatorform in struts/
Define the remote object implementation?
What are the purpose of introspection?
Which class is the immediate superclass of the menucomponent class?
Why do I get a duplicate name error when loading a jar file?
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 different algorithms used for clustering?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
Explain the difference between object state and behavior?
Explain about local interfaces.