Felipe
    You could try "countmatches"
from the docs on Jakarta
<str:countMatches substring="world">Hello world programs are rife in this
world due to their worldy view of how to program a world of
code</str:countMatches>
 returns the number of times that the body String contains the sub-string.
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