Jakarta string taglib might be an option:

http://jakarta.apache.org/taglibs/doc/string-doc/intro.html


-----Original Message-----
From: andy wix [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 03, 2004 4:43 AM
To: [EMAIL PROTECTED]
Subject: JSTL String manipulation

Hi,

I iterate through a collection and the following line yeilds the full
path 
of a file:

<c:out value="${messageSet.messages[MSG1].data}"/>

where messages is a Map and MSG1 is the key.

The issue is that I would like only to display the file name, not the
full 
path.

Can this be done with JSTL or should I revert to good old fashioned
Java?

Regards,
Andy

_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today! 
http://www.msn.co.uk/messenger


"The sender believes that this E-Mail and any attachments were free of any virus, 
worm, Trojan horse, and/or malicious code when sent. This message and its attachments 
could have been infected during transmission.  By reading the message and opening any 
attachments, the recipient accepts full responsibility for taking proactive and 
remedial action about viruses and other defects. The sender's business entity is not 
liable for any loss or damage arising in any way from this message or its attachments."

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

Reply via email to