Thank you. Zsolt
> -----Original Message----- > From: Kris Schneider [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 10, 2004 4:53 PM > To: Tag Libraries Users List > Subject: RE: how can I test for sub-string matching like ? > > > Well, seeing as how this is a mailing list for Jakarta Taglibs... > > <hint>http://jakarta.apache.org/taglibs/doc/string-doc/intro.html</hint> > > Quoting Zsolt Koppany <[EMAIL PROTECTED]>: > > > Hi, > > > > I use tomcat-4.1.29. > > > > I don't know the "str" tag library. Where can I get more info > about that? > > > > Zsolt > > > > > -----Original Message----- > > > From: Kris Schneider [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, February 10, 2004 1:36 PM > > > To: Tag Libraries Users List > > > Subject: Re: how can I test for sub-string matching like ? > > > > > > > > > If you're using JSP 1.2, I guess you could combine the String > > > taglib with JSTL: > > > > > > <str:countMatches var="count" substring="el">Hello</str:countMatches> > > > <c:if test="${count gt 0}"> > > > ... > > > </c:if> > > > > > > If you're using JSP 2.0, you use the JSTL 1.1 function: > > > > > > <c:if test="${fn:contains(stringVar, substringVar)}"> > > > ... > > > <c:if> > > > > > > Or you could create your own tag or a special-purpose bean or... > > > > > > Quoting Zsolt Koppany <[EMAIL PROTECTED]>: > > > > > > > Hi, > > > > > > > > how can I test whether a substring occurs in a string using "<c:if > > > > test=...>". > > > > I mean something like: > > > > String str = "Hello"; > > > > if (str.indexOf("el")) { > > > > } > > > > > > > > Zsolt > > > > > > -- > > > Kris Schneider <mailto:[EMAIL PROTECTED]> > > > D.O.Tech <http://www.dotech.com/> > > -- > Kris Schneider <mailto:[EMAIL PROTECTED]> > D.O.Tech <http://www.dotech.com/> > > --------------------------------------------------------------------- > 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]