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
Mention the scope values for
What is taglibs?
What is difference between jsp and jstl?
What is tag file?
Explain the various scope values for tag.
Explain the uses of
Explain some jsp life-cycle methods that can be overridden.
What are the directives in jsp?
What is tld in jsp?
How many tags are provided in jstl?
What are the advantages of jsp over servlet?
What are the different types of jsp tags?
What is contextpath?
How does a jsp function?
Differentiate between jsp scriptlet tag and declaration tag.