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 <
[email protected]> wrote:

> Try this:
> <s:if test="workNodeName.matches(\".+\")">
>
> 2010/12/23 Colin Freas <[email protected]>:
> > 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: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to