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
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
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
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
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,
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
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:
> >
>
> > 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
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
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
10 matches
Mail list logo