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

What is the relation between the infobus and rmi?

564


What must a class do to implement an interface?

590


What is a clone?

576


Java is fully object oriented languages or not?

552


how do you Handle Front End Application data against DB with example?

1487






What state does a thread enter when it terminates its processing?

613


What does module-relative mean?

585


What is a modular application?

602


Explain what is orm?

685


Is there a guarantee of uniqueness for entity beans?

577


Why use POJO when I can use hashmap

2058


What is difference between object state and behavior?

587


What is the difference between RMI and Corba?

2273


Describe activation process?

2070


Can we sent objects using Sockets?

657