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

What is a sessionfactory? Is it a thread-safe object?

685


Describe, in general, how java's garbage collector works?

540


When a thread blocks on i/o?

571


Can we sent objects using Sockets?

650


why static class in java

1277






what is the use of State Factories?

1908


What are the purpose of introspection?

680


How many times may an objects finalize() method be invoked by the garbage collector?

674


Why use a datasource when you can directly specify a connection details?

534


What are local interfaces? Describe.

701


What are externizable interface?

586


what are the advantages of JTA over JTS?

1671


Why are my checkboxes not being set from on to off?

647


What is message driven beam?

585


Which textcomponent method is used to set a textcomponent to the read-only state?

636