I'm using struts 1.2.9 but your case seems pretty standard.
 
1. yes, you should include the form name in your mapping
2. if necessary, in your action access the "id" from either the request or the 
form
3. get your data and populate the form
4. do not create form beans yourself
 
If you still have problem please post your mapping and action code

________________________________

From: Rick Schumeyer [mailto:[EMAIL PROTECTED]
Sent: Tue 12/12/2006 8:55 AM
To: Struts Users Mailing List
Subject: how to initialize an edit page?



this is a struts 1.3.5 question.

I am looking for an example of an edit cycle.  Let's say I have a list
of employee names; If I click on one I want to have a page to edit the
employee values.

The initial click would call an action that queries the database, gets
the employee data, and stores it...where exactly?

The initial click did not come from a form, and so does not have an
associated ActionForm (or should it?)

The edit page will have an associated ActionForm, but we are not there yet.

I could just "pass" an ActionForm bean to the edit page via
request.setAttribute()?

As you can see, I'm a bit confused on this point.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



**********************************************************************
This message is intended for the addressee named and may contain
privileged information or confidential information or both. If you
are not the intended recipient please delete it and notify the sender.
**********************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to