commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@multitask.com.au
Subject Re: [Jelly] Is there a tag for regular expression?
Date Thu, 17 Apr 2003 00:34:37 GMT
There is something similar in Latka...maybe we could refactor it out?
--
dIon Gillard, Multitask Consulting
Blog:      http://www.freeroller.net/page/dion/Weblog
Work:      http://www.multitask.com.au


James Strachan <james_strachan@yahoo.co.uk> wrote on 17/04/2003 03:04:57 
AM:

> 
> On Wednesday, April 16, 2003, at 05:44  pm, Willie Vu wrote:
> 
> > I'm trying to find a Jelly tag that supports regular expression.  Is 
> > there
> > such a tag?  I want to use it in conjunction with junit tags to do 
unit
> > testing.
> 
> AFAIK there isn't one right now.
> 
> Though you could always use some helper bean or some regexp API 
> directly...
> 
> <jelly xmlns="jelly:core">
>    <useBean var="tool" class="com.acme.SomeRegexpBean"/>
> 
>    ...
> 
>    <set var="regexp" value="${tool.makeRegexp('someexpression')}/>
> 
>    ...
>    <if test="${regexp.matches(someString)}">
>       ...
> 
> 
> etc.
> 
> Though it'd be a bit cleaner if there was a regexp tag library.
> 
> James
> -------
> http://radio.weblogs.com/0112098/
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 


Mime
View raw message