What are JSP scripting elements?

Answer Posted / santosh

JSP scripting elements let you insert code into the servlet
that will be generated from the JSP page. There are three forms:
1. Expressions of the form <%= expression %>, which are
evaluated and inserted into the servlet’s output
2. Scriptlets of the form <% code %>, which are inserted
into the servlet’s _jspService method (called by service)
3. Declarations of the form <%! code %>, which are inserted
into the body of the servlet class, outside of any existing
methods

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we call destroy method inside init method?

675


Define scriptlet, expression and declaration in jsp?

684


Show the 2 types of comments in JSP.

724


Explain the difference between include directive and include action in jsp?

708


How can I implement a thread-safe jsp page?

709


What are the advantages of jstl?

673


What is jsp in javascript?

686


What is jsp application?

670


Is jsp a front end?

740


What are the differences between get and load methods?

706


How can I set a cookie and delete a cookie from within a jsp page?

713


What is scriptlet tag?

695


What are the attributes of page directive?

716


What are advantages of jsp over asp, php, pure servlets and others?

678


What is a session in web?

707