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 directives in jsp?
Explain scriptlet, expression and declaration in jsp.
Which syntax is used to comment jsp?
How to use jsp el to get http method name?
How are jsp(java server pages) better than asp(active server pages)?
How do I view jsp files in my browser?
Explain implicit objects in jsp?
What are the different types of directives available in jsp?
Why taglib is used in jsp?
what is social transformation system? any site reference? How i get requirement gathering about for it? i wanna build website on this topic
What is the use of jstl tags in jsp?
Explain jsp action elements or action tags?
What is out println in jsp?
What is the scope of response object?
What is a jsp directive?