Hi Adam,

Well, I tried to use a mapping as an input value but this has a catch. 

As a matter of fact, I use the same Action and Action Form class for each page in a 
workflow. I have a Page field on my Actionform class. The value assigned to it simply 
helps me to select the next ActionForward. 

Now, when I set the same ActionMapping as the input directive, I need a way to set my 
page field so that, I will be redirected just to my previous action. Do you have any 
recommendations? 

Otherwise, I will have to define a seperate mapping for each workflow page , which I 
hope will solve the problem. 


-----Original Message-----
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Monday, September 01, 2003 12:41 PM
To: Struts Users Mailing List
Subject: Re: Struts form validation: DAO and multipages


Hi Leyla, working out a strategy for your lists can be as simple or as 
complicated as you want it to be. In my mappings I point my 'input' back 
to the appropriate mapping that will execute an action where I sort out 
the lists I need.

Adam
On 09/01/2003 11:18 AM Leyla TOLUN (Internet Yazilimlari Yonetmeni) wrote:
> Nobody has an idea on the subject? 
> 
> This should be a problem for anyone that codes, select one  and continue type web 
> apps. 
> 
> 
> -----Original Message-----
> From: Leyla TOLUN (Internet Yazilimlari Yonetmeni) 
> Sent: Friday, August 29, 2003 10:58 AM
> To: Struts Users Mailing List
> Subject: Struts form validation: DAO and multipages
> 
> 
> Hi,
> 
> I have a multipage transaction. On the first page, inside the Action class , I bind 
> a DAO list to request. This is listed on the second page. When I submit the formed 
> page, if the next ActionForm.validate fails, it automatically returns to the previos 
> page. (As defined in the sturts_config.xml form_bean/input directive.) 
> Since my DAO list does not exist in the newly formed request I see nothing. 
> 
> Is there a way to reexecute my previous ActionMapping when a fom validation fails. 
> (for a multipage app.)  Or can anyone reccomend a way to handle multipage apps. 
> (Storing DAO in the session seem inefficient, since there may be lots of such cases.)
> 
> Regards,
> 
> Leyla
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-- 
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9


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


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

Reply via email to