Home Help Java S JSP Scriplet



JSP Scriplet
Posted on: November 17, 2009 at 12:00 AM
A scriptlet can have any number of statements, variable or method declarations, or expressions that must be valid in the page scripting language.

JSP Scriplet

     

A scriptlet can have any number of statements, variable or method declarations, or expressions that must be valid in the page scripting language.

A scriptlet, you can have any of the following:

  • Declaration of variables or methods that should be used later in the JSP page.
  • Expressions valid in the page scripting language.
  • Any implicit object can be used or any object can be declared with a <jsp:useBean> element.
  • Any valid statement written in the scripting language can be used in the JSP page.

Write any text, HTML tags, or JSP elements outside the scriptlet.

Scriptlets are executed when the JSP container processes the request. Output (if) generated by scriptlet is stored in the out object.

To know more about jsp scriptlet go to:

http:/www.roseindia.net/jsp/jspscriptlets.shtml

Related Tags for JSP Scriplet:


More Tutorials from this section

Ask Questions?    Discuss: JSP Scriplet  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.