How can we restrict a Struts2 Action to work only for Post method?
How can we restrict a Struts2 Action to work only for Post method?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Why do you want to do this?
That aside here is how you could do it…
Then build an interceptor stack for a particular package and put your actions in that package or with annotations associate your action with the package using the ParentPackage annotation.