working however then don't
fix it...
- Original Message -
From: Mark Conlin [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, December 20, 2002 8:42 PM
Subject: RE: Pre-populating Form Bean
This can not be the correct way to do this.
I removed any reference
I would like to pre-populate a form bean for an edit screen.
I have spent the last hour or two reading the archives and still I have
failed to find the help I need.
Any feedback would be appreciated.
I have an Action class CustomerAccountDetailsPreEditAction that
pre-populates my form.
If this is a form which you've declared in your config file, and it's
associated with this action and you're forwarding to a JSP, you really
needn't bother sticking it into any scope. Struts will do this for you.
Just populate the form and return an ActionForward and let Struts do
it's thing.
-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 20, 2002 2:13 PM
To: Struts Users Mailing List
Subject: Re: Pre-populating Form Bean
If this is a form which you've declared in your config file, and it's
associated with this action and you're forwarding to a JSP, you really
...
Mark
-Original Message-
From: Mark Conlin [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 20, 2002 1:38 PM
To: 'Struts Users Mailing List'
Subject: RE: Pre-populating Form Bean
Okay so I have done the following...
I placed name=customerDetailsForm into my action declaration
2:30 PM
To: 'Struts Users Mailing List'
Subject: RE: Pre-populating Form Bean
Okay, I think I am missing something major here.
By watching the log files I see the following.
1)Proccessing my pre edit Action -
customer.customAccountDetails.pre.edit
2)Struts then looks for my ActionForm
for the pre edit action mapping.
robert
-Original Message-
From: Mark Conlin [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 20, 2002 2:30 PM
To: 'Struts Users Mailing List'
Subject: RE: Pre-populating Form Bean
Okay, I think I am missing something major here.
By watching the log
working however then don't
fix it...
- Original Message -
From: Mark Conlin [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, December 20, 2002 8:42 PM
Subject: RE: Pre-populating Form Bean
This can not be the correct way to do this.
I removed any
working however then don't
fix it...
- Original Message -
From: Mark Conlin [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, December 20, 2002 8:42 PM
Subject: RE: Pre-populating Form Bean
This can not be the correct way to do this.
I removed any
Yes, this did the trick, setting the validate=false works great!
Thank you so much.
Mark
-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 20, 2002 2:56 PM
To: Struts Users Mailing List
Subject: RE: Pre-populating Form Bean
Don't validate the pre
Your problem is that you need validate=false -- that will get rid of
the requirement to have 'input=?' and will allow your action to
execute as you expect. Nothing major at all - very subtle problem.
Mark Conlin wrote:
This can not be the correct way to do this.
I removed any reference to
11 matches
Mail list logo