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
List all tags that are provided in jstl?
List the various action tags used in jsp.
How can multiple submits due to refresh button clicks be prevented?
How to deactivate el usage on jsp?
What is a translation unit?
Explain the jsp:setProperty action.
What is jsp scriptlet tag used for?
What is JTGrid?
Which one is better jsp or servlet?
Explain the steps for creating custom tags in jsp?
Tell us about the jsp life cycle methods.
What is difference between sendredirect and forward?
What is jsp processing?
How can you make the finally clause not to fail to execute?
Why jsp is better over static html also explain lifecycle of a jsp?