There is an interceptor called JSONValidation (or something like that). If you cruise to the bottom of this page, you will see an example of using it with Prototype -
http://struts.apache.org/2.x/docs/ajax-validation.html I started a JQuery plugin that is sitting in the sandbox right now waiting for some direction, but I used this technique and if you're willing to wade through some code you can see how to use the JSONValidator in a very struts-y way. Also, there is a showcase where I put examples of AJAX form handling (with validation). http://svn.apache.org/viewvc/struts/sandbox/trunk/struts2-jquery-plugin/ http://svn.apache.org/viewvc/struts/sandbox/trunk/s2-jquery-showcase/ -Wes On Tue, Jul 28, 2009 at 7:30 AM, Nicolas Baron<nba...@octo.com> wrote: > Hi Zoran, > > Thank you for your answer. Since you are using JQuery directly, how do you > perform data validation ? Is it possible to use the XML Files or annotations > provided by Struts ? > > Cheers, > > Nicolas > > On Tue, Jul 28, 2009 at 11:26 AM, Zoran Avtarovski > <zo...@sparecreative.com>wrote: > >> From what I can tell Dojo has been moved out into a plugin, but still >> exists. >> >> Honestly though, I¹d take the opportunity move away from an integrated >> solution to using a javascript framework directly. >> >> We use jQuery and it integrates with Struts without any major issues and >> more often than not offers much greater flexibility. I know of others who >> use dojo, mootools and prototype without any issues. >> >> Z. >> > >> > Hi everybody, >> > >> > I'm currently working on a project based on Struts 2.0.11. We're planning >> to >> > migrate to the last 2.1.x version but I've just seen that the Dojo plugin >> > has been deprecating. Consequently, what's your recommandation to perform >> > proper AJAX validation since the example on the Wiki is still based on >> the >> > Dojo plugin ? Which plugin will be the next standard for Ajax tags in >> Struts >> > 2 ? JQuery plugin ? >> > >> > Thanks in advance for your answers, >> > >> > Regards, >> > >> > Nicolas >> >> >> > > > -- > .......................................................... > Nicolas BARON > Architecte > OCTO Technology Maroc > .......................................................... > 59, av Fal Ould Oumeir > Rabat Agdal - Maroc > GSM : (212) 661 46 20 38 > http://www.octo.com/ > ........................................................... > -- Wes Wannemacher Head Engineer, WanTii, Inc. Need Training? Struts, Spring, Maven, Tomcat... Ask me for a quote! --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org