You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by stanlick <st...@gmail.com> on 2007/09/15 16:50:55 UTC
form method
I am knee deep in the token processing support and have a basic question. Is
there a way in S2 to specify that say /order/checkOut.action should only be
processed if it was submitted as a METHOD="POST"? I'm trying to close the
door on an accidental request through the address bar!
Scott
--
View this message in context: http://www.nabble.com/form-method-tf4447940.html#a12690834
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: form method
Posted by Dave Newton <ne...@yahoo.com>.
--- stanlick wrote:
> I wanted to steer away from writing yet another
> interceptor to handle something that should be
> built-in.
Submit a patch, but check to see if the new stuff
already handles RESTfulness properly to avoid
duplication of effort.
> I think the struts-default.xml interceptor stack for
> executeAndWaitStack needs to be fixed in 2.0.9. It
> specifies the execAndWait ref twice!
File a JIRA (a patch for this one might be a bit
superfluous ;)
d.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: form method
Posted by stanlick <st...@gmail.com>.
Thank Dave.
I wanted to steer away from writing yet another interceptor to handle
something that should be built-in. BTW, I think the struts-default.xml
interceptor stack for executeAndWaitStack needs to be fixed in 2.0.9. It
specifies the execAndWait ref twice!
Scott
newton.dave wrote:
>
> --- stanlick <st...@gmail.com> wrote:
>> Is there a way in S2 to specify that say
>> /order/checkOut.action should only be
>> processed if it was submitted as a METHOD="POST"?
>> I'm trying to close the door on an accidental
>> request through the address bar!
>
> Nothing built-in that I'm aware of, although some of
> the experimental RESTful stuff in 2.1 might cover this
> usecase (haven't looked at it yet).
>
> I handled it via an interceptor.
>
> d.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/form-method-tf4447940.html#a12692025
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: form method
Posted by Dave Newton <ne...@yahoo.com>.
--- stanlick <st...@gmail.com> wrote:
> Is there a way in S2 to specify that say
> /order/checkOut.action should only be
> processed if it was submitted as a METHOD="POST"?
> I'm trying to close the door on an accidental
> request through the address bar!
Nothing built-in that I'm aware of, although some of
the experimental RESTful stuff in 2.1 might cover this
usecase (haven't looked at it yet).
I handled it via an interceptor.
d.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org