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

Define JSP Scriptlet.

566


What program opens a jsp file?

500


What are the literals used in jsp?

581


What are jsp action tags?

464


What is jsp and its architecture?

517






What is error page in jsp?

491


How to send data from one page to another in jsp?

496


How to pass information from jsp to included jsp?

523


How can I maintain session in JSP Page in the bases of user name and password:

581


What is tld file?

492


Give uses of object cloning?

552


How do I perform browser redirection from a jsp page?

499


What is the standard action?

524


Why jsp is better over static html also explain lifecycle of a jsp?

454


Which method cannot be overridden in jsp?

512