dsp:setvalue sets a bean property or page parameters:

<dsp:setvalue target-spec [source-spec] />

where target-spec specifies the target to set in one of the following ways:

  • bean=property-spec

  • param=param-name

and source-spec specifies the source value in one of the following ways:

  • beanvalue=property-spec

  • paramvalue=param-name

  • value=value

The value of the property is assigned by calling the appropriate accessor method on the target object. If no source value is specified, the target is set to null value.

For example, the following JSP fragment sets the bean property Student_01.name to the string value Brian:

<dsp:importbean bean="/samples/Student_01"/>

<p><dsp:setvalue bean="Student_01.name" value="Brian"/>

Copyright © 1997, 2014 Oracle and/or its affiliates. All rights reserved. Legal Notices