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

What are directives in jsp?

734


What is jsp usebean?

689


How did you implement caching in jsp?

857


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

685


How can information from one JSP be passed to another JSP?

797


What is full api?

731


List the different scope values for the tag in jsp?

709


What is pagescope in jsp?

693


What is request scope in jsp?

737


What is difference between jsp and jstl?

706


Explain the various scope values for tag.

711


How do I use a scriptlet to initialize a newly instantiated bean?

746


What are the different life-cycle methods?

772


Can we use javascript in jsp?

710


What is the jsp:plugin action ?

760