If you use jstl 1.1 (the newest--there isn't a 1.2), then you can use
the EL functions.  There are two functions to do what you want:
fn:contains and fn:containsIgnoreCase.

-----Original Message-----
From: David Schwartz [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 01, 2004 3:03 PM
To: Jakarta Taglibs help (E-mail)
Subject: Finding a string within a string


I'm using jstl 1.2 with tomcat 4.1.24

Using the EL, is there a way to search for a "string within a string"?

For example, I want to find "there" in the string "hello there world".
(something like indexOf(String str) )

David Schwartz


---------------------------------------------------------------------
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