12.6
What are Scriptlets ?
In Java Server Pages (JSP) technology, a scriptlet is a piece of Java-code embedded in a JSP page. The scriptlet is everything
inside the tags. Between these tags, a user can add any valid scriplet.
12.7
What are Decalarations ?
Declarations are similar to variable declarations in Java. Declarations are used to declare variables for subsequent use in expres-
sions or scriptlets. To add a declaration, you must use the sequences to enclose your declarations.
12.8
What are Expressions ?
A JSP expression is used to insert the value of a scripting language expression, converted into a string, into the data stream
returned to the client, by the web server. Expressions are defined between <% =and %> tags.
12.9
What is meant by implicit objects and what are they ?
JSP implicit objects are those Java objects that the JSP Container makes available to developers in each page. A developer can
call them directly, without being explicitly declared. JSP Implicit Objects are also called pre-defined variables.The following
objects are considered implicit in a JSP page:
• application
• page
• request
• response
Java Interview Questions
30 / 30
• session
• exception
• out
• config
• pageContext
Do'stlaringiz bilan baham: |