I have started a web application using struts 2. Apache tomcat 6.0 is my web server. It is clear to me that we can validate data using action-validation.xml as my login-validation.xml is –
<validators>
<field name="username">
<field-validator type="requiredstring">
<message>Login name is required</message>
</field-validator>
</field>
</validators>
But it is only for pre-defined types like requiredstring, int, email etc. If I want that user name must have a character for example ‘*” then how can we achieve this type of validation in struts 2.
And also tell me what I have explained above is a server side validation or client side validation.