Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to allow only Post method in Struts

 
Tauri Valor
Ranch Hand
Posts: 181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

How can we allow only Post method in Struts. I want to disable Get method.
any examples or useful links for this...

Rgds,
Sudheer
[ October 21, 2005: Message edited by: sudheer yed ]
 
Wagner Danda Da Silva Filho
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, look at the web for Extending struts RequestProcessor. You might find in this class a "doGet" method or something similar...

Wagner Danda
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you can set such a constraint from the web.xml. It allows you to specify http-method for a security-constraint.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic