Can we use methods in JSP? If so where the methods are
stored in servlet class file?
Answer Posted / manesh
Mandrita , There is a typo in ur answer.
Its should be <%! //the method%>. not
Regards,
Manesh A. K.
>Yes we can write java methods inside jsp files within
the "declarations" tag <!%//the method%>.
>
>This part of the code is compiled by the servlet engine
and
>inserted outside the _jspservice() method in the generated
servlet class
Is This Answer Correct ? | 11 Yes | 2 No |
Post New Answer View All Answers
How can multiple submits due to refresh button clicks be prevented?
How will you use jsp el in order to get the http method name?
What is session object in jsp?
What are the attributes of page directive?
Why session is used?
Is jsp and javascript same?
What are jsp declarations?
What's the difference between javabeans and taglib directives?
What are the different types of jsp directive?
What is the use of jstl?
What is the default value of session attribute in jsp?
write a program in javasacript to shake the window
What is expression language injection?
What are advantages of jsp over asp, php, pure servlets and others?
What are the advantages of jstl?