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 language is jsp?
How do you connect to the database from jsp?
How are jsp(java server pages) better than asp(active server pages)?
How to access java variable in jsp?
What are the features of jsp?
What are the attributes of page directive?
How can you make the finally clause not to fail to execute?
What are the attributes on page directives?
What is jstl core tags?
Why does _jspService() start with an ‘_’ but other lifecycle methods do not?
What are the jsp tags?
Can a constructor be used in place of init() method to initialize a servlet?
Mention the advantages of jsp over pure servlets?
What is the requirement of a tag library?
What do you mean by custom tag in jsp?