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

When the destroy method of the jsp's are called?

570


How does response sendredirect work?

586


Explain the uses of jsp?

619


What information is needed to create a tcp socket?

599


How to retrieve warnings?

600






Explain jsp lifecycle methods?

606


Why are implicit objects not available in a regular jsp page?

723


What are the components that make up a tag library in jsp?

533


what is social transformation system? any site reference? How i get requirement gathering about for it? i wanna build website on this topic

1962


Mention the implicit objects in a jsp.

621


What is < jsp:forward> tag for?

623


How can we handle exceptions thrown by jsp service method?

579


What are the types of directives in jsp?

584


Why jsp is used in java?

564


How do I create a dynamic web project?

554