A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
How to allow only Post method in Struts
Joined: Aug 03, 2005
Oct 21, 2005 01:23:00
How can we allow only Post method in Struts. I want to disable Get method.
any examples or useful links for this...
[ October 21, 2005: Message edited by: sudheer yed ]
A Moment's insight is sometimes worth a Life's experience.
Wagner Danda Da Silva Filho
Joined: Mar 21, 2003
Oct 21, 2005 07:34:00
Hi, look at the web for Extending
RequestProcessor. You might find in this class a "doGet" method or something similar...
Joined: Feb 05, 2003
Oct 21, 2005 09:44:00
I think you can set such a constraint from the web.xml. It allows you to specify http-method for a security-constraint.
A good workman is known by his tools.
I agree. Here's the link:
subject: How to allow only Post method in Struts
passed scwcd with 85%
* Welcome Mark Cade & Humphrey Sheil
how to set a ArrayLIst property of form from jsp
Using struts and complex forms
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014