Felipe,
    If you want to search for more complex strings I also found this in
Regex
<%-- create the match regexp "m/test1/mi" --%>
<rx:regexp id="rx1">m/test1/mi</rx:regexp>
<%-- set the text to match on --%>
<rx:text id="test">
This is a
test of regular expression matching.
</rx:text>
See if a match exists...<br>
<rx:existsMatch regexp="rx1" text="test">
     A match was found!<br>
</rx:existsMatch>
<rx:existsMatch regexp="rx1" text="test" value="false">
     A match was not found!<br>
</rx:existsMatch>
Kenneth Tyler
tinyxp
Berkeley CA

----- Original Message -----
From: "Felipe Schnack" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 20, 2003 12:18 PM
Subject: how to look for substrings


  Hey all
  How can I include the body of a tag (much like an "if") when a
substring is found using JSTL? Basically, I would like to do this:

<c:if test="${param.name like '%smith%'}">
  it works!
</c:if>

  But I see there isn't a "like" operator :-)

--

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Centro Universit�rio Ritter dos Reis
http://www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303341


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