I finaly chose to use the same action and the same form for create and
update.
This decision allow me to simplify my code, but I used two jsp because on
the
specification, the create and the update page are visually different
thanks to all for help me about your advices .
Xavier
--
To
You have one form bean, one jsp, and 2 actions.
ProductForm - form bean holds data and has action attribute to determine
if this is an add or edit form
productForm.jsp - displays data to user
GetProductFormAction - if this will be an edit form, get data from db and
pre-populate the form bean,
On Tue, 29 Oct 2002, Xavier Combelle wrote:
Date: Tue, 29 Oct 2002 17:25:34 +0100
From: Xavier Combelle [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: how many form for update and create action ?
I have a conceptual problem in my
Xavier Combelle [EMAIL PROTECTED] wrote:
I have a conceptual problem in my struts application
I am programming an application which give the possibility
to create, update and delete several information, for exemple
the name and the price of an item.
So I need to give to the user two
Josh,
I think your approach is fairly standard and is also what I recommended :-).
David
From: Josh Berry [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: [how many form for update and create action ?]
Date
David Graham [EMAIL PROTECTED] wrote:
Josh,
I think your approach is fairly standard and is also what I
recommended :-).
The only thing I wasn't sure of was using the same action for saving and
creating. I feel that is easiest, but I can see how some people might
disagree.
Also, two general
A couple of embedded comments.
On Tue, 29 Oct 2002, Josh Berry wrote:
Date: Tue, 29 Oct 2002 14:16:54 -0500
From: Josh Berry [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: [Re: [how many form for update
7 matches
Mail list logo