If you want use native struts2 validation start from here [1], Remember that in order to show the error message on top you need to choose the css_xhtml theme for struts.
[1] http://struts.apache.org/2.2.1/docs/validation.html 2010/12/28 <karthick.gunaseka...@wipro.com>: > Any One tell me how to do field validation in struts 2, > i need to show the error message on top of the each field not in top of the > screen. > > Thanks and Regards, > Karthick G > Mobile:9911597083 > > Please do not print this email unless it is absolutely necessary. > > The information contained in this electronic message and any attachments to > this message are intended for the exclusive use of the addressee(s) and may > contain proprietary, confidential or privileged information. If you are not > the intended recipient, you should not disseminate, distribute or copy this > e-mail. Please notify the sender immediately and destroy all copies of this > message and any attachments. > > WARNING: Computer viruses can be transmitted via email. The recipient should > check this email and any attachments for the presence of viruses. The company > accepts no liability for any damage caused by any virus transmitted by this > email. > > www.wipro.com > -- Maurizio Cucchiara --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org