By the concept of validation framework ,it is not needed to write validate() in form bean.
And you have mentioned <msg name="required" key="errors.username.required" /> , include this key with a value in properties file.
Check whether the path value mentioned in parameter or the page(RegisterUser.jsp) is available or not. (parameter="/src/main/webapp/pages/RegisterUser.jsp")
Joined: Jun 28, 2011
Thanks for reply.
Every thing is right but still it is giving the same error(Servlet action in unavailable).
Joined: May 10, 2013
Have you deployed struts1 jars or if the application is not deployed correctly so that it not able to parse the struts-config file and initialize the servlet properly or the type and name values in the struts-config file are not given properly.Mostly ,these are the reasons to produce that error.
Please modify set-property value in PlugIn to value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" .Please refer below sample code
if you found warning Resource your properties file name_en_US something then you have
mistake something like
1) we did not keep properties file in classes folder.(so keep in classes folder and extension should be properties )
2)check index.jsp action attribute values are same as struts-config.xml action tag path attribute value.
3)tag message-resources here s are must