Re: Action Returning to previous page

2005-01-21 Thread Brandon Mercer
Will Stranathan wrote: Hello again, I've found this interesting and seemingly useful piece of information in a struts book I recently obtained. Dynamic Forwards ActionForward forward = new ActionForward("/do/itemEdit?action=edit"); Then it goes on to tell me to use the runtime parameter technique

Re: Action Returning to previous page

2005-01-20 Thread Will Stranathan
Hello again, I've found this interesting and seemingly useful piece of information in a struts book I recently obtained. Dynamic Forwards ActionForward forward = new ActionForward("/do/itemEdit?action=edit"); Then it goes on to tell me to use the runtime parameter techniques in the previous s

Re: Action Returning to previous page

2005-01-20 Thread Dakota Jack
This is all cool, but, I think, overly complicated for what you need. I think a better solution, simpler and less archane, would be to create a helper class that constructs the appropriate ActionForward given your needs/rules. SomeAction extends Action with execute(...) { return ActionForwar

Re: Action Returning to previous page

2005-01-20 Thread Brandon Mercer
Will Stranathan wrote: On Wed, 19 Jan 2005 22:16:34 -0800 Dakota Jack <[EMAIL PROTECTED]> wrote: > 2) Specify a for the Action that sends the user back to > from whence they came. I don't think I can do this because they may come from a number of pages. You can specify a dynamic ActionForward

Re: Action Returning to previous page

2005-01-20 Thread Brandon Mercer
Will Stranathan wrote: My apologies for not reading first - yeah - use a dynamic one like jack said. I would PROBABLY subclass Action with an abstract subclass - something like: public ... execute(...) { // This overrides Action.execute() // Do whatever up-front checking ... // Now,

Re: Action Returning to previous page

2005-01-20 Thread Will Stranathan
On Wed, 19 Jan 2005 22:16:34 -0800 Dakota Jack <[EMAIL PROTECTED]> wrote: > 2) Specify a for the Action that sends the user back to > from whence they came. I don't think I can do this because they may come from a number of pages. You can specify a dynamic ActionForward return in your Actio

Re: Action Returning to previous page

2005-01-19 Thread Kishore Senji
On Wed, 19 Jan 2005 22:57:01 -0500, Brandon Mercer <[EMAIL PROTECTED]> wrote: > Will Stranathan wrote: > > > Not positive I completely understand the question, so I'll make a very > > vague response. > > Yeah, after I read it I didn't make much sense to myself either. :-P > > > > > You can: > >

Re: Action Returning to previous page

2005-01-19 Thread Dakota Jack
> > > 2) Specify a for the Action that sends the user back to > > from whence they came. > > I don't think I can do this because they may come from a number of pages. > You can specify a dynamic ActionForward return in your Action class execute(...) method. Not sure why this presents any di

Re: Action Returning to previous page

2005-01-19 Thread Brandon Mercer
Will Stranathan wrote: Not positive I completely understand the question, so I'll make a very vague response. Yeah, after I read it I didn't make much sense to myself either. :-P You can: 1) Use the input attribute of an Action to specify the page that fed it - if the validate() method on the

Re: Action Returning to previous page

2005-01-19 Thread Will Stranathan
Not positive I completely understand the question, so I'll make a very vague response. You can: 1) Use the input attribute of an Action to specify the page that fed it - if the validate() method on the ActionForm() returns a non-empty ActionErrors, the user will go back there. 2) Specify a for