I used the iterator trick described before and it works, showing me all field errors. Nested into the 2 iterators tag, there's a tag which I could use to print only the errors for a specific field using <s:property />?
Thanks. manub wrote: > > Isn't it possible to reference directly the single field errors without > modifying the FTL and without having <ul> and <li> tags? > > > > Sonny Gill wrote: >> >> Ahh...right. >> Assuming that you are using simple theme as default, You will need to >> extract fielderror.ftl from the struts2 jar, modify it to suit the way >> you want it, and then add it to your applicaiton. >> >> Instructions here - >> http://struts.apache.org/2.0.14/docs/template-loading.html >> >> The other option is to forgo the use of <s:fielderror /> and manually >> iterate through them like so - >> >> <s:iterator value="fieldErrors"> >> <s:iterator value="value"> >> <s:property /> >> </s:iterator> >> </s:iterator> >> >> Cheers, >> Sonny >> >> On Fri, Feb 13, 2009 at 2:23 PM, Po Po <semu...@yahoo.com> wrote: >>> Hi, >>> Sorry, for mistype. it should be <s:fielderror /> >>> I try to add attribute theme="simple" but the tag ul and li are still >>> exist. >>> >>> >>> Thanks >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> >> > > -- View this message in context: http://www.nabble.com/customize-fielderror-tp21990061p23619249.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