On Wed, 3 Jul 2002, Hal Deadman wrote:

> Date: Wed, 3 Jul 2002 18:39:13 -0400
> From: Hal Deadman <[EMAIL PROTECTED]>
> Reply-To: Struts Developers List <[EMAIL PROTECTED]>,
>      [EMAIL PROTECTED]
> To: 'Struts Developers List' <[EMAIL PROTECTED]>
> 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, July 03, 2002 6:20 PM
> > To: [EMAIL PROTECTED]
> > 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 [EMAIL PROTECTED]
> > 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:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to