struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject RE: DO NOT REPLY [Bug 7202] - Add forward attribute to FormTag to allow submision to a global forward
Date Thu, 04 Jul 2002 00:09:53 GMT


On Wed, 3 Jul 2002, Hal Deadman wrote:

> Date: Wed, 3 Jul 2002 18:39:13 -0400
> From: Hal Deadman <hal.deadman@Tallan.com>
> Reply-To: Struts Developers List <struts-dev@jakarta.apache.org>,
>      hal.deadman@Tallan.com
> To: 'Struts Developers List' <struts-dev@jakarta.apache.org>
> Subject: RE: DO NOT REPLY [Bug 7202]  -     Add forward attribute to
>     FormTag to allow submision to a global forward
>
> Does using the forward attribute mean creating a global forward for every
> action submitted to by a form?

No -- its only needed for the weird corner case where you have logic
inside the forwarded-to resource that you want to reuse.  For example,
this lets you hide an existing servlet behind an Action URL.

> If so you end up with lots of global-forwards
> that map directly to actions, so why not just use the action URL?

Yep -- my feeling as well :-).

This discussion is about whether we should allow page authors to think
they are submitting to a forward instead of to an action.

>
> This seems like just one more level of indirection that has to be followed
> when you are trying to figure out which action class a form is submitting to
> (if you are looking at the JSP, not the HTML source).
>

In the rare cases where you want to use this thing, it's either one level
of indirection (forwards aren't real expensive, but they do take
effort) versus making the page author know that they have two logical
namespaces to which forms can be submitted.

> Hal

Craig


>
> > -----Original Message-----
> > From: bugzilla@apache.org [mailto:bugzilla@apache.org]
> > Sent: Wednesday, July 03, 2002 6:20 PM
> > To: struts-dev@jakarta.apache.org
> > Subject: DO NOT REPLY [Bug 7202] - Add forward attribute to FormTag to
> > allow submision to a global forward
> >
> >
> > DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
> > RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> > <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7202>.
> > ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
> > INSERTED IN THE BUG DATABASE.
> >
> > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7202
> >
> > Add forward attribute to FormTag to allow submision to a
> > global forward
> >
> >
> >
> >
> >
> > ------- Additional Comments From husted@apache.org
> > 2002-07-03 22:19 -------
> > And so ... if the forward.getPath() did not resolve to an
> > ActionMapping, it
> > would generate the same error that is generated if were
> > hardcoded that way. So,
> > the suggestion is not that we want the html:form to submit to
> > anything but an
> > ActionMapping, we are just looking for a cannonical way to
> > deliver the
> > ActionMapping path to the form at runtime, without resorting
> > to a RTE.
> >
> > -T.
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:struts-dev-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:struts-dev-help@jakarta.apache.org>
> >
>
>
> --
> To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:struts-dev-help@jakarta.apache.org>
>
>


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


Mime
View raw message