WHAT IS A SCRIPTLET?

Amit Singh

Total Post:565

Points:2825
Posted by  Amit Singh
Java 
 863  View(s)
Ratings:
Rate this:
  1. Amit Singh

    Post:565

    Points:2825
    What is a Scriptlet?

    A scriptlet can contain any number of language statements, variable or method declarations, or expressions that are valid in the page scripting language.Within scriptlet tags, you can

    1.Declare variables or methods to use later in the file (see also Declaration).

    2.Write expressions valid in the page scripting language (see also Expression).

    3.Use any of the JSP implicit objects or any object declared with a <jsp:useBean> tag.
    You must write plain text, HTML-encoded text, or other JSP tags outside the scriptlet.

    Scriptlets are executed at request time, when the JSP engine processes the client request. If the scriptlet produces output, the output is stored in the out object, from which you can display it.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!