If I define a method in JSP scriplet <%..%>, where will it
go after translation into a servlet?

Answer Posted / karthik

After translation of jsp code into servlet the scriplets
(<%...%> contents will be executed via the service methods.
suppose if we define the new method inside the scriplte tag
the container will raise the compilation error.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can I run seam outside of jboss as?

644


Which containers use a border layout as their default layout?

615


How primary key is implemented in Oracle?

1920


If your ui seems to freeze periodically, what might be a likely reason?

551


What are the different methods of identifying an object?

581






Do you think that java should have had pointers?

606


what are getters and setters in Java with examples?

1288


How to determine SGA site?

1913


what are the advantages of JTA over JTS?

1675


Why use a datasource when you can directly specify a connection details? (in a J2EE application)

3461


What is JTS?

1865


what is a portable component?

1470


What event results from the clicking of a button?

701


What is a policy?

1777


What classes of exceptions may be caught by a catch clause?

561