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
What are the types of directives in jsp?
Which jsp lifecycle methods can be overridden?
How can I extend the functionality of jsp?
What is the difference between a scrollbar and a scrollpane in jsp?
What is the default value of session attribute in jsp?
How to disable session in jsp?
How to send data from one page to another in jsp?
What are the elements of jsp?
What is expression language injection?
How to access java variable in jsp?
What are the jsp tags?
How to connect jsp and java file?
What are the different types of jstl tags?
What is a scriptlet?
Explain handling of runtime exceptions.