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


Please Help Members By Posting Answers For Below Questions

Why is string immutable in java?

804


wahts is mean by dynavalidatorform in struts/

1784


Define the remote object implementation?

2186


What is prototype?

815


what is the use of State Factories?

2110


What is jboss?

766


Are enterprise beans allowed to use thread.sleep()?

881


Name the class that is used to bind the server object with RMI Registry?

1903


What is mdb and what is the special feature of that?

786


Describe responsibilities of Activator?

1861


What are JTA/JTS and how they used by client?

1942


What are externizable interface?

792


What is the difference between the font and fontmetrics classes?

803


Difference between new operator and class.forname().newinstance()?

822


What are the types of scaling?

791