Perfect, thanks both, it solve the issue :)
Thomas Rene Vervik wrote:
>
> I manage to do input validation when I have one of the default themes
> selected (xhtml, css_xhtml, etc). But what if I dont want to use
> Freemarker, I want to build the whole HTML in my Jsp, how do I "extract"
> the error messages the validation framework generate.
> Example, see the code in the code paragraph
>
>
>
> How do I extract the error messages in the Jsp when I have the theme set
> to simple?
>
>
> public class Person{
> private String name;
> Private String email;
> }
>
> I have the following validation xml file:
>
>
>
> You must enter a name
>
>
>
>
> You must enter a email address
>
>
>
>
> And this form:
>
> value="%{name}"/>
> value="%{email}"/>
>
>
>
> Thanks for all help
>
--
View this message in context:
http://www.nabble.com/Input-validation-in-Struts-2-and-extrating-the-errors-in-jsp-tp24120894p24129281.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