WHAT IS A SCRIPTLET?

Amit Singh

Total Post:562

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

    Post:562

    Points:2810
    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.

      Modified On Mar-27-2018 12:01:07 AM

Answer

NEWSLETTER

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