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


Please Help Members By Posting Answers For Below Questions

Is jsp technology extensible?

822


How many tags are provided by jstl?

680


What is declaration statement?

714


What are jsp elements?

684


What do you mean by isscriptingenabled attribute?

666


What are the elements of jsp?

684


What are the ways to insert java code into jsp page?

729


Which one is correct order of phases in jsp life cycle?

789


Why do we need servlets and jsp?

659


What is jsp and its architecture?

658


Is jsp server side scripting language?

744


What are the advantages of jstl?

660


What is a scriptlet in jsp and what is its syntax?

675


What is scriptlet, expression and declaration in jsp?

654


How do I use sendredirect?

674