Re: struts validator
Mike Nash <[email protected]> Tue, 8 Jun 2004 19:21:35 -0400
| Newsgroups | gmane.comp.java.keel.user |
|---|---|
| Organization | JGlobal |
| Message-ID | <[email protected]> |
Lou: I think you're 100% correct - in fact I found and fixed this one a couple of days back, then I had to travel and got behind on checking in.... I'm catching up now and will try to get this in cvs tonight. Sorry for the holdup! Mike On Wed, 9 Jun 2004 13:03:47 -0700 "Louis Moore" <[email protected]> wrote: > After looking at it more, I see that the errors set in > DefaultModelValidator are kept in the ModelRequest and are not returned > at all if the redirect Command is returned. From the javadoc: > > * @return A command, ready to be executed to return to the appropriate > * model for the user to try again, or null of no such > * validation-error model is specified. If null is returned, > then > * any validation errors are stored as a Map in a request > * attribute, where they may be accessed by the Model as > needed. > > It seems to me like you need to have the error messages available > especially if you return the redirect command, so the user can see what > he did wrong. Am I missing something here? > > Thanks, > Lou > > -----Original Message----- > From: user-keelframework.org-admin-rI8AND0JKYOgdSakss0wQjfEH8FBEnyy@public.gmane.org > [mailto:user-keelframework.org-admin-rI8AND0JKYOgdSakss0wQjfEH8FBEnyy@public.gmane.org] On Behalf > Of Sasvata (Shash) Chatterjee > Sent: Monday, June 07, 2004 8:04 PM > To: user-6VIttnCrOeJXNEnpj1eHPNi2O/[email protected] > Subject: Re: [Keel User] struts validator > > Louis/Mike, > > > > >Please let me know when the message fix is in as well. Thanks! > > > > > Thought I'd mention something I ran into. If you are using Struts, and > are using i18n message resources, and those messages are not showing up, > > then it may be because the build system was copying the *.properties > resource files to an incorrect location (copying to WEB-INF, instead of > WEB-INF/classes). The clue is if you see "Unable to translate....." > logs on the Struts/Tomcat console. I fixed this already in keel-build > CVS. > > Shash > _______________________________________________ > User mailing list > [email protected] > http://lists.keelframework.org/listinfo.cgi/user-keelframework.org > > _______________________________________________ > User mailing list > [email protected] > http://lists.keelframework.org/listinfo.cgi/user-keelframework.org