A conversion failure leads to an error; the error may be at translation or at request time.
TABLE 2 4 
Valid assignments in jsp:setProperty
Property Type
Conversion on String Value
boolean or Boolean
As indicated in java.lang.Boolean.valueOf(String)
byte or Byte
As indicated in java.lang.Byte.valueOf(String)
char or Character
As indicated in java.lang.Character.valueOf(String)
1
double or Double
As indicated in java.lang.Double.valueOf(String)
int or Integer
As indicated in java.lang.Integer.valueOf(String)
float or Float
As indicated in java.lang.Float.valueOf(String)
long or Long
As indicated in java.lang.Long.valueOf(String)
1. This needs to be clarified before final, since the conversion is dependent on a character encoding.
Examples
The following two elements set a value from the request parameter values.
The following element sets a property from a value
  />
2.13.2.1
Syntax
prop_expr ::=
property="*"
|
property= propertyName |
property= propertyName  param="parameterName"|
property= propertyName  value= propertyValue 
propertyValue ::= string
The value 
propertyValue
 can also be a request time attribute value, as described in Section 2.12.1, 
 Request Time Attribute Values .
propertyValue ::= expr_scriptlet
1
1. See syntax for expression scriptlet  <%= ... %> 
65
JavaServer Pages 1.1 Specification  
November 30, 1999




JSP Web Hosting JavaServer Pages Specifications JSP Hosting




 
TotalRoute.net Business web hosting division of Vision Web Hosting Inc. All rights reserved.