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

What are the difference between RMI and CORBA?

617


How primary key is implemented in Oracle?

1908


What are the design considerations while making a choice between using interface and abstract class?

539


What is a modular application? What does module-relative mean?

538


What is permgen or permanent generation?

579






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

572


Can I have an action without a form?

588


How messaging services are done, before release of JMS?

1582


What are the different approaches to represent an inheritance hierarchy?

578


Explain about RMI Architecture?

603


Is it possible to stop the execution of a method before completion in a sessionbean?

592


how i secure my site with the https protocol.what are the steps?

1732


What is prototype?

602


What are JTA/JTS and how they used by client?

1712


What is a class loader?

582