struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craftyman <craftyman...@gmail.com>
Subject Re: S:If test with percent car
Date Wed, 03 Dec 2008 16:17:37 GMT
Thanks for your quick answer

2008/12/3 Dave Newton <newton.dave@yahoo.com>

>
> http://struts.apache.org/2.x/docs/why-wont-the-if-tag-evaluate-a-one-char-string.html
>
>
> --- On Wed, 12/3/08, Craftyman <craftyman750@gmail.com> wrote:
>
> > From: Craftyman <craftyman750@gmail.com>
> > Subject: S:If test with percent car
> > To: "Struts Users Mailing List" <user@struts.apache.org>
> > Date: Wednesday, December 3, 2008, 10:59 AM
> > Hi,
> >
> > I would like to check if my unit equal to percent cahr (%)
> > to replace it by
> > %25 in my url in order to allow to get this value during
> > the auto decoding
> > url by my browser.
> > In use the folling code :
> >
> > <s:if test="%{unit} == '%'>
> >  // Special code here to replace % by %2( in my url
> > </s:if>
> >
> > But it does not run; percent char is not check correctly
> >
> > I have try other kind of syntaxe witout more success.
> >
> > Any idea ?
> >
> > Regards
> >
> > C├ędric
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message