Joe, Ted,

Your proposed solutions worked well.  Thanks.

JohnH

-----Original Message-----
From: Joe Kepley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 5:50 PM
To: [EMAIL PROTECTED]
Subject: RE: ActionForm/Action with edit mode


I solved this one by creating an action that looked at the incoming bean,
and if it was null or contained no data (the user was viewing and hadnt
edited yet), then the action would populate the bean from a database and
pass back with no errors. If a hidden variable (I called it 'process') had
been set, then the action would validate the input, then store the new info
into the database. 
Hope that helps,
--Joe
> -----Original Message-----
> From: John Hogan [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 06, 2001 4:29 PM
> To: [EMAIL PROTECTED]
> Subject: ActionForm/Action with edit mode
> 
> 
> All,
> 
> I have a situation where it is desirable to use a form/page for both 
> adding new info and editing existing data.  The new info scenario is 
> straight forward struts ActionForm/Action classes.  What I'm 
> wrestling with a bit is the edit scenario.  I'm wondering if I can 
> stay within the struts framework and still do something like entering 
> a page in edit mode and have it displaying existing user data?
> 
> It seems this should be possible because that's exactly what the page 
> does for error handling.  Has anyone else tackled this one yet?  TIA.
> 
> JohnH
> 
> _____________________________________
> 
> Get your free E-mail at http://www.ireland.com
> 

Reply via email to