Hi, You can use the "fn:substring" function (see some documentation, for example JSTL1.1 specification, for the attributes).
In order to use it, you have to declare the directive taglib i.e. <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> at the begin of jsp. BR /Amleto > -----Messaggio originale----- > Da: Brian McGovern [mailto:[EMAIL PROTECTED] > Inviato: mercoledì 11 maggio 2005 15.29 > A: Struts Users Mailing List > Oggetto: OT JSTL c:out > > > I want to only print a portion of a string with JSTL c:out tag > > So if my string = "foobar", I want to know how to print out "xxxbar" > > Thanks > -B > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.308 / Virus Database: 266.11.8 - Release Date: 10/05/2005 > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.8 - Release Date: 10/05/2005 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]