I've found this way :

<c:if test="${link.bytes[0] eq '/'.bytes[0]}">

Not so pretty, but working !

Nico.

nicolas De Loof a écrit :

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]


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



Reply via email to