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 value does readline() return when it has reached the end of a file?

598


What is table mutation and how do you avoid it?

1920


Java is fully object oriented languages or not?

543


In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?

587


How is a java object message delivered to a non-java client?

578






What modifiers may be used with an inner class that is a member of an outer class?

580


How are the elements of a cardlayout organized?

600


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

590


What is the purpose of the wait(), notify(), and notifyall() methods?

572


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

1720


In inglish: How to convert jar to exe files? Em português: Como converter arquivos .jar para .exe?

2158


Why a client should be multithreading? Explain.

598


whats is mean by connectionpooling

1570


What are the different types of exception?

574


What is the difference between the session.get() method and the session.load() method?

605