Re: struts2 ognl confusion

2009-08-06 Thread musomesa
:41 pm Subject: Re: struts2 ognl confusion questionId is just a string. so dont think its equals or hash problem. wes, what you suggested I've put that in place and testing to see if error comes again. On Wed, Aug 5, 2009 at 1:35 PM, wrote: > > what type is questionId? You m

Re: struts2 ognl confusion

2009-08-05 Thread Chris Pratt
t in this document > http://struts.apache.org/2.1.6/docs/iterator.html > id attribute is deprecated. > > Louis > > > > From: Chris Pratt > To: Struts Users Mailing List > Sent: Wednesday, August 5, 2009 4:54:31 PM > Subject: Re: struts

Re: struts2 ognl confusion

2009-08-05 Thread Bhaarat Sharma
in it. > Chris > > > > > > > > -Original Message- > From: Wes Wannemacher > To: Struts Users Mailing List > Sent: Wed, Aug 5, 2009 1:09 pm > Subject: Re: struts2 ognl confusion > > > > > > > > > > > I would try to fiddle ar

Re: struts2 ognl confusion

2009-08-05 Thread musomesa
what type is questionId? You might have a problem with the equals() in it. Chris -Original Message- From: Wes Wannemacher To: Struts Users Mailing List Sent: Wed, Aug 5, 2009 1:09 pm Subject: Re: struts2 ognl confusion I would try to fiddle around with incorrectQs

Re: struts2 ognl confusion

2009-08-05 Thread Wes Wannemacher
I would try to fiddle around with incorrectQs to see why .contains isn't working... I'm guessing that if you iterate both lists, although not efficient, you might get better results - Print Something On Wed, Aug 5, 2009 at 12:22 PM, Bhaarat Sharma wrote: > looks like it is not wor

Re: struts2 ognl confusion

2009-08-05 Thread Bhaarat Sharma
s Mailing List > Sent: Wednesday, August 5, 2009 4:54:31 PM > Subject: Re: struts2 ognl confusion > > You must be using a fairly old version of Struts 2. The difference between > the ${} and the # versions is that the ${} is a JSTL EL expression that is > no longer allowed inside stru

Re: struts2 ognl confusion

2009-08-05 Thread mailtolouis2020-struts
but in this document http://struts.apache.org/2.1.6/docs/iterator.html id attribute is deprecated. Louis From: Chris Pratt To: Struts Users Mailing List Sent: Wednesday, August 5, 2009 4:54:31 PM Subject: Re: struts2 ognl confusion You must be using a fairly

Re: struts2 ognl confusion

2009-08-05 Thread Bhaarat Sharma
looks like it is not working only in contains.I tried the following: Print Something Line 6 prints fine and prints questionId...:( On Wed, Aug 5, 2009 at 12:09 PM, Bhaarat Sharma wrote: > thanks for the explanation chris. but usi

Re: struts2 ognl confusion

2009-08-05 Thread Bhaarat Sharma
thanks for the explanation chris. but using what you suggested is not making Print Something appear even once. so the test statement is never evaluated to true. ...leading me to suspect that ognl expression is not working. I am not sure whether the random error that is happening for us is being cau

Re: struts2 ognl confusion

2009-08-05 Thread Chris Pratt
You must be using a fairly old version of Struts 2. The difference between the ${} and the # versions is that the ${} is a JSTL EL expression that is no longer allowed inside struts (s:) tags for security reasons. The # version is OGNL and references the variable that Wes tried to define. Try us

Re: struts2 ognl confusion

2009-08-05 Thread Bhaarat Sharma
oh and attribute 'var' seems to be invalid according to the TLD On Wed, Aug 5, 2009 at 11:42 AM, Bhaarat Sharma wrote: > ok thanks Wes. yeah that is def. more readable. > could you please tell me what the difference is in doing > > VS. > > > beside the question.questionId part. I am mo

Re: struts2 ognl confusion

2009-08-05 Thread Bhaarat Sharma
ok thanks Wes. yeah that is def. more readable. could you please tell me what the difference is in doing VS. beside the question.questionId part. I am more concerned about difference in '$' vs. '#' On Wed, Aug 5, 2009 at 11:39 AM, Wes Wannemacher wrote: > I think this would be more re

Re: struts2 ognl confusion

2009-08-05 Thread Wes Wannemacher
I think this would be more readable - Print Something -Wes On Wed, Aug 5, 2009 at 11:35 AM, Bhaarat Sharma wrote: > I have the following code in a jsp > Line1: > Line2:     > Line3:        Print > Something > Line4:     > Line5: > > On Line1 questions is a list.  This list c