Create multiple methods in one action class itself in Struts2?
Can I create two methods in the same Action Class? If so how can we specify it in the struts.xml file ? For example : I created a simple validation action class to validate the email address as well as password using two separate regular expression. I created two Methods in the Action class say: emailVerification() and passVerification() . I wrote all the necessary validation code inside, but now when they return SUCCESS they should result into the same success page result and for ERROR likewise.. Uchenna Nwanyanwu Yes you can create any number of methods in an Action Class. You can do