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

Answer Posted / prs01

@Karthikeyan ...In Java, you cannot have a method inside
another method (service). You may try the same, in JSP
itself you will get compile time error when defining a
method in scriplets.

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which container method is used to cause a container to be laid out and redisplayed?

888


Difference between swing and awt?

837


which book is better for jdbc ,servlets and jsp

1848


What are local interfaces? Describe.

901


Explain phantom read?

1973


Name the eight primitive java types.

821


what are the advantages of JTA over JTS?

1911


Can you control when passivation occurs?

809


What is clustering? What are the different algorithms used for clustering?

797


How would you reatach detached objects to a session when the same object has already been loaded into the session?

933


whats is mean by tiles in struts

1873


What is the diffrence between a local-tx-datasource and a xa-datasource?

804


Explain the difference between object state and behavior?

770


What are transaction attributes?

829


wahts is mean by dynavalidatorform in struts/

1792