Thanks, gents.  Perfect!

On Thu, Dec 23, 2010 at 2:13 PM, Dave Newton <davelnew...@gmail.com> wrote:

> Yep, the entire expression needs to be in the OGNL escape.
>
> Although I'd just use single and double quotes to avoid the escapes.
>
> Dave
>
> On Thu, Dec 23, 2010 at 12:53 PM, Maurizio Cucchiara <
> maurizio.cucchi...@gmail.com> wrote:
>
> > Try this:
> > <s:if test="workNodeName.matches(\".+\")">
> >
> > 2010/12/23 Colin Freas <colinfr...@gmail.com>:
> > > I'm trying to use a regex in the test of an if tag.  The object in the
> > test
> > > is a String, so I'm trying this, and it isn't working:
> > > <s:if test="%{workNodeName}.matches(\".+\")">
> > >
> > > Is this possible?  Is there another way to do this?
> > >
> >
> >
> >
> > --
> > Maurizio Cucchiara
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
>

Reply via email to