On 9/7/06, Vaneet Sharma <[EMAIL PROTECTED]> wrote:

Can anybody tell me how to set a form bean property of type
java.util.HashMap in a jsp page.
Actually i am prepolulating this property in action and then forwarding to
a jsp page.
In this jsp page i need to again set this property ,so tht if there is
some validation error then this HashMap is not lost.
So tht is why i want to set this property of type HashMap in jsp page .


If all you need to do is to copy the property you  can use  <bean:define>

If your hashmap is being set as a request attribute

<bean:define name="mapAttributeName" id="copiedMap" scope="request"/>

If its a property of the form bean then,

<bean:define name="formBean" property="mapProperty" id="copiedMap"
scope="request"/>

Read this for more
http://struts.apache.org/1.2.x/api/org/apache/struts/taglib/bean/package-summary.html#package_description

--
Puneet

Reply via email to