Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 56706 invoked from network); 22 Jun 2009 19:03:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Jun 2009 19:03:19 -0000 Received: (qmail 31341 invoked by uid 500); 22 Jun 2009 19:03:27 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 31307 invoked by uid 500); 22 Jun 2009 19:03:27 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 31297 invoked by uid 99); 22 Jun 2009 19:03:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jun 2009 19:03:27 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mgainty@hotmail.com designates 65.55.111.99 as permitted sender) Received: from [65.55.111.99] (HELO blu0-omc2-s24.blu0.hotmail.com) (65.55.111.99) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Jun 2009 19:03:14 +0000 Received: from BLU142-W12 ([65.55.111.71]) by blu0-omc2-s24.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 22 Jun 2009 12:02:53 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_9bafdd11-6b78-4d40-a803-761a38bd690b_" X-Originating-IP: [71.192.158.139] From: Martin Gainty To: Struts Users Mailing List Subject: RE: Display only 100 chars of a string Date: Mon, 22 Jun 2009 15:02:53 -0400 Importance: Normal In-Reply-To: References: MIME-Version: 1.0 X-OriginalArrivalTime: 22 Jun 2009 19:02:53.0938 (UTC) FILETIME=[0BF4CD20:01C9F36C] X-Virus-Checked: Checked by ClamAV on apache.org --_9bafdd11-6b78-4d40-a803-761a38bd690b_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable i couldnt get that to work either.. suggest setting the value and truncating the value to a new String variable= in action class or setting the value and truncating the value to a new Str= ing variable in backing bean Martin Gainty=20 ______________________________________________=20 Verzicht und Vertraulichkeitanmerkung/Note de d=E9ni et de confidentialit= =E9 =20 Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaeng= er sein=2C so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiter= leitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient l= ediglich dem Austausch von Informationen und entfaltet keine rechtliche Bin= dungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen w= ir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut =EAtre privil=E9gi=E9. Si vous n'=EAtes= pas le destinataire pr=E9vu=2C nous te demandons avec bont=E9 que pour sat= isfaire informez l'exp=E9diteur. N'importe quelle diffusion non autoris=E9e= ou la copie de ceci est interdite. Ce message sert =E0 l'information seule= ment et n'aura pas n'importe quel effet l=E9galement obligatoire. =C9tant d= onn=E9 que les email peuvent facilement =EAtre sujets =E0 la manipulation= =2C nous ne pouvons accepter aucune responsabilit=E9 pour le contenu fourni= . > From: stefano.tranquillini@gmail.com > Date: Mon=2C 22 Jun 2009 18:26:45 +0200 > Subject: Re: Display only 100 chars of a string > To: user@struts.apache.org >=20 > are you sure that this thing works? > because i don't see anything. > I'm inside an iterator =2C with this thing works value=3D"%{description}" /> with yours no. > seems that description is empty when i do value=3D"@java.lang.String@format('%.100s'=2C description)" /> >=20 > On Mon=2C Jun 22=2C 2009 at 18:09=2C Jon Pearson = wrote: > > Sorry=2C I accidentally embedded double quotes inside double quotes=2C > > here's a fix: > > > > > > > >> -----Original Message----- > >> From: stefano.tranquillini@gmail.com > >> [mailto:stefano.tranquillini@gmail.com] On Behalf Of Stefano > >> Sent: Monday=2C June 22=2C 2009 12:07 PM > >> To: Struts Users Mailing List > >> Subject: Re: Display only 100 chars of a string > >> > >> @Greg: do u put that code inside the bean? i can't do this. > >> @Jon thanks=2C but i've some problem with the " of the part: "%.100s" > >> the system found a end tag " at the first " that it encountred. i > >> tried to put \" but doesn't work. > >> > >> On Mon=2C Jun 22=2C 2009 at 18:00=2C Jon > >> Pearson wrote: > >> > >> description)" /> > >> > should work (check > >> > > >> http://www.opensymphony.com/ognl/html/LanguageGuide/staticMethods.html > >> > for OGNL for calling static methods) > >> > > >> >> -----Original Message----- > >> >> From: Stefano Tranquillini [mailto:stefano.tranquillini@gmail.com] > >> >> Sent: Monday=2C June 22=2C 2009 11:58 AM > >> >> To: Struts Users Mailing List > >> >> Subject: Re: Display only 100 chars of a string > >> >> > >> >> On Mon=2C Jun 22=2C 2009 at 17:46=2C Jon > >> >> Pearson wrote: > >> >> > String.format("%.100s"=2C s)=3B > >> >> how can i put this thing in the jsp? > >> >> > >> >> > >> >> -- > >> >> Stefano > >> >> > >> >> > >> --------------------------------------------------------------------- > >> >> To unsubscribe=2C e-mail: user-unsubscribe@struts.apache.org > >> >> For additional commands=2C e-mail: user-help@struts.apache.org > >> >> > >> >> > >> > > >> > > >> --------------------------------------------------------------------- > >> > To unsubscribe=2C e-mail: user-unsubscribe@struts.apache.org > >> > For additional commands=2C e-mail: user-help@struts.apache.org > >> > > >> > > >> > >> > >> > >> -- > >> Stefano > >> > >> --------------------------------------------------------------------- > >> To unsubscribe=2C e-mail: user-unsubscribe@struts.apache.org > >> For additional commands=2C e-mail: user-help@struts.apache.org > >> > >> > > > > --------------------------------------------------------------------- > > To unsubscribe=2C e-mail: user-unsubscribe@struts.apache.org > > For additional commands=2C e-mail: user-help@struts.apache.org > > > > >=20 >=20 >=20 > --=20 > Stefano >=20 > --------------------------------------------------------------------- > To unsubscribe=2C e-mail: user-unsubscribe@struts.apache.org > For additional commands=2C e-mail: user-help@struts.apache.org >=20 _________________________________________________________________ Microsoft brings you a new way to search the web. Try Bing=99 now http://www.bing.com?form=3DMFEHPG&publ=3DWLHMTAG&crea=3DTEXT_MFEHPG_Core_ta= gline_try bing_1x1= --_9bafdd11-6b78-4d40-a803-761a38bd690b_--