You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Seth Ladd <se...@brivo.com> on 2001/06/08 19:50:25 UTC

reference input page from inside action?

Hello,

Is it possible to reference and forward to the input page of an action from
within the action?  It seems as if I have to make an explicit forward
mapping for input for each action.  Sometimes, I need to do extra state
checking inside action, and if that fails, to forward back to input.  The
explicit forward mapping is fine, but it would seem more simple if "input"
was a default mapping.

Any tips or pointers would be much appreciated!

Thanks,
Seth


Re: reference input page from inside action?

Posted by Oleg V Alexeev <go...@penza.net>.
Hello Seth,

For example -

----
 return new ActionForward( mapping.getInput() );
----

if input attribute is defined for this action.

Friday, June 08, 2001, 9:50:25 PM, you wrote:

SL> Hello,

SL> Is it possible to reference and forward to the input page of an action from
SL> within the action?  It seems as if I have to make an explicit forward
SL> mapping for input for each action.  Sometimes, I need to do extra state
SL> checking inside action, and if that fails, to forward back to input.  The
SL> explicit forward mapping is fine, but it would seem more simple if "input"
SL> was a default mapping.

SL> Any tips or pointers would be much appreciated!

SL> Thanks,
SL> Seth



-- 
Best regards,
 Oleg                            mailto:gonza@penza.net



RE: reference input page from inside action?

Posted by Seth Ladd <se...@brivo.com>.
>         return (new ActionForward(mapping.getInput()));

excellent, thank you very much!

Seth

Re: reference input page from inside action?

Posted by Ted Husted <hu...@apache.org>.
        return (new ActionForward(mapping.getInput()));

Seth Ladd wrote:
> 
> Hello,
> 
> Is it possible to reference and forward to the input page of an action from
> within the action?  It seems as if I have to make an explicit forward
> mapping for input for each action.  Sometimes, I need to do extra state
> checking inside action, and if that fails, to forward back to input.  The
> explicit forward mapping is fine, but it would seem more simple if "input"
> was a default mapping.
> 
> Any tips or pointers would be much appreciated!
> 
> Thanks,
> Seth

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/