1.

What Are Scripting Elements?

Answer»

JSP scripting elements LET you insert Java code into the servlet that will be GENERATED from the current JSP page. There are three forms:

  1. Expressionsof the form <%= expression %> that are evaluated and inserted into the output,
  2. Scriptletsof the form <% code %> that are inserted into the servlet's SERVICE method,
  3. Declarationsof the form <%! code %> that are inserted into the body of the servlet class, outside of any existing methods.

JSP scripting elements let you insert Java code into the servlet that will be generated from the current JSP page. There are three forms:



Discussion

No Comment Found