View Single Post
  #2 (permalink)  
Old 08-07-2007, 08:33 AM
toby toby is offline
Member
 
Join Date: Jul 2007
Posts: 40
toby is on a distinguished road
The syntax for a JSP expression

Code:
<%= any Java expression that can be converted to a string % >
The syntax for getting a parameter from the implicit request object

Code:
request.getParameter(parameterName);
Examples that use scriptlets and expressions

A scriptlet and expression that display the value of the firstName parameter

Code:
<% String firstName = request.getParameter("firstName"); %> The first name is <%= firstName %>
.

An expression that displays the value of the firstName parameter
Code:
The first name is <%= request.getParameter("firstName") %>
.
Reply With Quote