Sure; use the id to retrieve the bean (just like you
would for a normal 'edit' CRUD-type action) and
pre-populate the form.

Could you please provide a concrete example?
I don't really understand what an "'edit' CRUD-type action" is.
> use the id to retrieve the bean
How do I retrieve it? Should I use <bean:define> (as I tried) ?

I have two actions. One for the form and one for the modify button on the page 
that shows up on form submission:

//----------------------------------------
<action input="/LP/JSP_L01.jsp" name="BEAN_L01" path="/L01FormAction" 
scope="request" type="com.myapp.struts.ACT_L01" validate="true">
            <set-property property="cancellable" value="true"/>
            <forward name="cancel" path="/index.jsp"/>
            <forward name="success" path="/LP/JSP_L01_1.jsp"/>
</action>

<action input="/LP/JSP_L01.jsp" name="BEAN_L01" path="/L01FormModifyAction" 
scope="request" type="com.myapp.struts.ACT_L01Modify">
            <forward name="success" path="/LP/JSP_L01.jsp"/>            
</action>
//----------------------------------------

Thanks so much for some help.

Regards,

  Balazs


 
____________________________________________________________________________________
Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

Reply via email to