I believe it depends on the nature of the project whether to use custom javascript validations or not. There is no hard and fast rule to avoid javascripts completely. As a standard, most of the struts2 project uses the in-built validation even if some cases are missing in the in-built validations we will extend the base and use it...
~Muthu -----Original Message----- From: arya84 [mailto:ina.a...@gmail.com] Sent: Friday, March 20, 2009 11:54 AM To: user@struts.apache.org Subject: Use of JavaScipt in JSP pages using Struts2 tags Hi All, I am new to Struts2 and Web Development too. I read few tutorials about Struts2 but I am little confused about the way its should be used in the presentation part. I am using Struts2 tags for creating the User Interface but I am not sure about the use of JavaScript or Action/Interceptors. Can you please help me out, that common use cases like, checking a blank entry for User/password should be handled using Struts2 validation or Javascript. A simple way is to use alerts using Javascript but what is the recommendation while using Struts2? Should I avoid using Javascript in my application ? -- View this message in context: http://www.nabble.com/Use-of-JavaScipt-in-JSP-pages-using-Struts2-tags-tp226 14908p22614908.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org