struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Raeburn" <sraeb...@apache.org>
Subject RE: SuccessAction (was RE: Addition of two new actions)
Date Sat, 09 Aug 2003 23:13:58 GMT


> -----Original Message-----
> From: David Graham [mailto:grahamdavid1980@yahoo.com]
> Sent: August 9, 2003 3:56 PM
> To: Struts Developers List
> Subject: RE: SuccessAction (was RE: Addition of two new actions)
>
>
> >
> > If Action actually does something useful, could we go crazy and default
> > the
> > type as well?
> >
> >   <action path="/myAction">
> >       <forward path="/myPage.jsp"/>
> >   </action>
>
> There is a simpler way of doing that:
> <action path="/myAction" forward="/myPage.jsp"/>
>
> The only benefit of SuccessAction was that it allowed you to use the more
> configurable <forward> element to describe the forward so I think
> SuccessAction examples should include <forward> attributes that couldn't
> be done any other way.
>
> Having said all that, I do like that we're trying to get a simpler
> action/forward declaration syntax :-).
>

But forward= doesn't allow you to mix 'n' match context/module relative
forwards :-)

> >
> > Now that's simple. Especially if you allow a global default forward...
> >
> >   <action path="/myAction"/>
>
> All we know from this is that there is an action mapped to /myAction but
> we don't know what handles it.  Taken by itself, it looks nonsensical and
> would likely cause confusion.  This may be a case where it's *too* simple.
>
> David
>

I wasn't being entirely serious with that, just following it to its logical
conclusion. I did say it probably wasn't very useful. But it would work. If
you know that you can define a global default forward then it makes sense.

It does raise the question of whether we want to allow/look for a global
default action. I'm thinking it may be better to insist that each global
forward has a name, just to avoid confusion. Technically, it works but it
might just be too confusing.

Steve.

> >
> > Probably not quite so useful, but nicely minimal!
> >
> > Steve
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-dev-help@jakarta.apache.org
> >
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-dev-help@jakarta.apache.org
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


Mime
View raw message