struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wesley Wannemacher" <>
Subject RE: [s2] String comparison with OGNL
Date Tue, 23 Jan 2007 19:45:06 GMT
When I read your message, it occurred to me that OGNL couldn't know what
type `addrType' was because my Action is only a stub. #parameters is a
magical variable containing all of the request parameters, so I hadn't
thought of making getters/setters on my Action before. 

So, I added a getAddrType() and setAddrType(String) then tried again.

I went through the whole gambit of syntaxes and I still can't find one that

If I'm using the correct syntax, let me know because it could just be a bad
set of struts jars (which I can replace).


> -----Original Message-----
> From: Tom Schneider [] 
> Sent: Tuesday, January 23, 2007 1:50 PM
> To: Struts Users Mailing List
> Subject: Re: [s2] String comparison with OGNL
> #parameters.addrType is of type String correct?  If not, e.g. 
> if it were an
> enum, then I would expect all the comparisons to fail.  You might try
> #parameters.addrType.toString().equals('billing') and see if 
> that gets it to
> work.
> Tom

View raw message