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

Differentiate between jsp scriptlet tag and declaration tag.

566


What is translation phase?

567


How can I prevent the use of scripts and java code on the jsp page?

482


Can we define a class inside a jsp page?

477


Explain the various scope values for tag.

505






What are jsp elements?

505


What will happen if iselignored attribute is set as false?

473


How to access java variable in jsp?

492


What is difference between jsp and javascript?

478


What are the different scope values for the tag?

468


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

567


Which is mandatory in tag in jsp?

467


Mention the jstl core tags.

527


What is jstl (jsp standard tag library)?

522


How can we prevent implicit session creation in jsp?

520