Can we use methods in JSP? If so where the methods are
stored in servlet class file?
Answer Posted / mandrita sinha choudhuri
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 ? | 38 Yes | 11 No |
Post New Answer View All Answers
What is jsp container?
What is the scope of response object?
How can a thread safe JSP page be implemented?
How do we prevent browser from caching output of my jsp pages?
What is the purpose of jsp?
How we can include the result of another page in jsp?
Can we override the jspinit(), _jspservice() and jspdestroy() methods?
How can we retrieve warnings?
How to call java method in jsp page on button click?
How to delete a cookie in jsp?
What is difference between include directive and jsp:include action?
Explain the difference between servletcontext and pagecontext in jsp?
What is the page directive is used to prevent a jsp page from automatically creating a session?
What are the different types of jsp tags?
What is jsp and its advantages?