can we assume fieldErrors is some sort of List<E> ? http://java.sun.com/javase/6/docs/api/java/util/List.html#get(int)
(would be easier to follow example if we could see referenced variables) thanks, Martin Gainty ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Sun, 31 May 2009 13:07:19 -0700 > From: gutostra...@gmail.com > To: user@struts.apache.org > Subject: Re: customize fielderror > > > Hi all! > > I had the same problem here and I wrote the following code to avoid change > the default struts template: > > <s:if test="fieldErrors.get('email').size() > 0"><s:property > value="fieldErrors.get('email').get(0)" /></s:if> > > > > newton.dave wrote: > > > > manub wrote: > >> Yes. <s:fielderror> renders also <ul> and <li> tag, and I don't need > >> them. > >> I'm in need of a way to showing only the errors for a specific field > >> without > >> having any HTML tag (I need only the plain text). > > > > You'd either need to create/extend/modify the theme, use CSS, or just do > > it manually. > > > > Dave > > > > --------------------------------------------------------------------- > > 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-tp21990061p23806475.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 > _________________________________________________________________ Insert movie times and more without leaving Hotmail®. http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tutorial_QuickAdd1_052009