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 are the three tags used in jsp bean development?
Give the use of session object.
Differentiate between jsp scriptlet tag and declaration tag.
Which jsp implicit objects are thread safe?
What is the purpose of jsp?
How does a jsp work?
Mention the scope values for
What are the primary differences between the jsp custom tags and java beans?
Explain implicit objects in jsp?
What is difference between jspwriter and servlet printwriter?
What is the difference between servletcontext and pagecontext?
What are the two ways to include the result of another page?
How can I use the results of my method? ea: <%! method (int x) { stuff return y; } %> <% out.println(y); %> how can I make this work? "y" is a variable made during the method.
What do you mean by custom tag in jsp?
What is client scripting?