You can do it by hand though: <s:if test="getFieldErrors() != null && getFieldErrors()['myfield'] != null"> <s:fielderror> <s:param value="%{'myfield'}"/> </s:fielderror> </s:if>
In addition, if you are using S2.1, then you have a basic error handling. Each tag has an cssErrorClass and cssErrorStyle attributes that are set when there is a validation error. 2008/10/8 Sébastien Domergue <[EMAIL PROTECTED]>: > Hi, > you're right, simple theme don't allow you to use validation. In order to > use validation with the simple theme you have to extend it or to modify > xhtml theme in order not to build the table layout. > The templates sources are in struts jar and you can define others by adding > them to struts.properties. > You also have the actionerror and actionmessage tags that can display those > messages but they will be all displayed at the same place. > > Regards > > Sébastien > > Torsten Krah a écrit : >> >> Hi. >> I don't want to use the xhtml theme because of the table layout it >> produces, the simple is enough. >> However, simple does not render the validation errors or messages. >> >> Wheres the glue to do so with the simple theme? Did not find any >> information about this yet which helps me, to render those messages. >> >> Any help appreciated. thx. >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]