set property for a bean with a value from the request
Posted on 2002-04-21
Here is an example of what I want to achieve.
<jsp:setProperty name="someBean" property="someProperty" value="<%=session.getValue("someOtherProperty")%>"/>
Basically I want to assign to a bean property another property comming from the session object.
With the syntax from above, I keep getting an error message "Attribute someOtherProperty has no value".
However, if I replace the code from abobe with
<%=session.getValue("someOtherProperty")%>, I am getting printed the value of the someOtherPropery, which is OK.