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

Why won’t the jvm terminate when I close all the application windows?

750


what are getters and setters in Java with examples?

1282


What are the sequence of steps to write pub or sub model kind of application?

1891


How substring() method of string class create memory leaks?

548


What is the relation between the infobus and rmi?

554






What is the difference between static and non-static with examples?

1356


Describe responsibilities of Activator?

1667


Whats new with the stop(), suspend() and resume() methods in jdk 1.2?

579


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

675


Why does the option tag render selected=selected instead of just selected?

671


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

637


How to determine SGA site?

1906


What is JTS?

1862


Why use POJO when I can use hashmap

2043


What is the difference between RMI and Corba?

2251