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

Why is _jspservice() method starting with an '_' while other life cycle methods do not?

513


Why is it not necessary to configure standard jsp tags in web.xml?

497


What is session setattribute?

488


What do you mean by custom tag in jsp?

511


What jsp lifecycle methods can be overridden?

533






What are the elements of a jsp page?

489


How do you connect to the database from jsp?

543


What are scriptlets in jsp?

516


Explain some jsp life-cycle methods that can be overridden.

498


What is out println in jsp?

523


What is scriptlet in jsp?

505


mention the three important tags used in the development of jsp bean.

478


What is the standard action?

594


What is jsp declaration?

498


How jsp is executed?

460