I personally prefer to use: return mapping.getInputForward();

It's much neater, prettier and intuitive.
Shouldn't really matter though.


- Keith


-----Original Message-----
From: Deepak [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 7:01 AM
To: Struts Users Mailing List
Subject: Re: Howto get ActionForward to calling Page?


Try 
new ActionForward(mapping.getInput())

deepak

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 05, 2003 4:17 PM
Subject: Howto get ActionForward to calling Page?


> Hi, 
> 
> looking for a way to get an ActionForward to the page calling the 
> current servlet. 
> 
> Example: 
> Want to realize 5-XX pages where to enter values for a 
> calculation. The calculation & result page would check if 
> everything entered was fine (using db queries etc..)
> Now in case that one of the input values is incorrect / 
> missmatching the context, I'd like to redisplay the calling page 
> to the user, showing the values entered before + an error message. 
> 
> How can i realize that without having to define specific forwards 
> to the 5 pages and then deciding which one was the calling one?
> 
> Tried the ActionMapping.getInputForward(), but it brought back 
> null values in the ActionForward only.
> 
> Comments and keywords to look for welcome.
> 
> Thanks, Alex
> 
> ---------------------------------------------------------------------
> 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]

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

Reply via email to