Re: Comparing a request parameter to a string literal

2009-04-17 Thread Russell Neufeld
Ahh! It's an array! So instead of I need to do this: Thank you! Russ Dave Newton wrote: Russell Neufeld wrote: I'm still coming up the learning curve on Struts2, and I've come across something I can't explain. Hopefully you guys out there can help me understand this.

Re: Comparing a request parameter to a string literal

2009-04-17 Thread Dave Newton
Russell Neufeld wrote: I'm still coming up the learning curve on Struts2, and I've come across something I can't explain. Hopefully you guys out there can help me understand this. I have a request parameter "status" set to "invalid" which I'd like to access from within a JSP. If I use the

Re: Comparing a request parameter to a string literal

2009-04-17 Thread Russell Neufeld
Thanks. Yeah, that's good practice. Didn't seem to fix my problem though. That still evaluated to false. Pierre Lavignotte wrote: Hi, you should consider comparing strings with the equals() method : "invalid".equals(#parameters.status) Cordialement, Pierre Lavignotte Ingénieur Concepti

Re: Comparing a request parameter to a string literal

2009-04-17 Thread Russell Neufeld
Thanks for the suggestion. That did not work. Evaluates to false. Terry Gardner wrote: try On Apr 17, 2009, at 1:58 PM, Russell Neufeld wrote: Hi all, I'm still coming up the learning curve on Struts2, and I've come across something I can't explain. Hopefully you guys out there ca

Re: Comparing a request parameter to a string literal

2009-04-17 Thread Pierre Lavignotte
Hi, you should consider comparing strings with the equals() method : "invalid".equals(#parameters.status) Cordialement, Pierre Lavignotte Ingénieur Conception & Développement http://pierre.lavignotte.googlepages.com On Fri, Apr 17, 2009 at 8:01 PM, Terry Gardner wrote: > try > > > On Apr

Re: Comparing a request parameter to a string literal

2009-04-17 Thread Terry Gardner
try On Apr 17, 2009, at 1:58 PM, Russell Neufeld wrote: Hi all, I'm still coming up the learning curve on Struts2, and I've come across something I can't explain. Hopefully you guys out there can help me understand this. I have a request parameter "status" set to "invalid" which I'd