<c:if test="${fn:startsWith(url, '/')}">

Thanks
 
-- pady
[EMAIL PROTECTED]
 

-----Original Message-----
From: nicolas De Loof [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 23, 2004 11:12 AM
To: Struts Users Mailing List
Subject: [OT] JSTL : test the first char of a String

Hello,

I'm using JSTL and Struts-EL. I would like to test the first char of a 
String.

The string is a URL, and can be a path to some action on my webapp or 
any external URL.
I'd like to test if the url starts with '/' to select the <html:link>  
attriibute to use : page or href.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to