RE: struts validator
"Louis Moore" <[email protected]> Wed, 9 Jun 2004 13:03:47 -0700
| Newsgroups | gmane.comp.java.keel.user |
|---|---|
| Message-ID | <C5E6D04B7C014946B7CCBFC2AF30DB62C096BA@corpmail01.corp.walmart.com> |
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