<jsp:setProperty>  

The <jsp:setProperty> action sets the value of one or more bean properties.

Example:

<jsp:setProperty name="user" property="*" />
<jsp:setProperty name="user" property="modDate" 
  value="<%= new java.util.Date() %>" />
name String
Request-time value accepted: no

Mandatory. The name assigned to a bean in one of the JSP scopes.

property String
Request-time value accepted: no

Mandatory. The name of the bean property to set, or an asterisk (*) to set all properties with names matching the request parameters.

param String
Request-time value accepted: no

Optional. The name of a request parameter that holds the value to use for the specified property. If omitted, the parameter name and property name must be the same.

value See below
Request-time value accepted: yes

Optional. An explicit value to assign to the property. This attribute cannot be combined with the param attribute.

The property type can be any valid Java type, including primitive types and arrays (i.e., an indexed property). If the value attribute specifies a runtime attribute value, the type of the expression must match the property's type.

If the value is a string, either in the form of a request parameter value or explicitly specified by the value attribute, it is converted to the property's type as follows:

Property type

Conversion method

boolean or Boolean

Boolean.valueOf(String)

byte or Byte

Byte.valueOf(String)

char or Character

String.charAt(int)

double or Double

Double.valueOf(String)

float or Float

Float.valueOf(String)

int or Integer

Integer.valueOf(String)

long or Long

Long.valueOf(String)