Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on conditional test operator used in EL

 
Melinda Savoy
Ranch Hand
Posts: 387
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to run a method from within an EL that does not appear to be displaying the correct value. When I step through my method in DEBUG mode I see the return value coming back correctly for each record (7 records in my _reqItems which is a type List) but my JSP does not display correctly. My JSP displays all "N"'s when however I should display 5 "N" and 2 "Y".

The JSTL version we're using is 1.2
The JSP version we're using is 2.0

Please, any direction or help would be greatly appreciated. Regards. My code is as follows:

The method in my object is:



The EL used in my JSP:



[ December 22, 2006: Message edited by: Melinda Savoy ]
[ December 22, 2006: Message edited by: Melinda Savoy ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This may be a stab in the dark (which I usually try to avoid, but this is any easy one to test): what happens if you change isMultiChrgTo to getMultiChrgTo?
[ December 22, 2006: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, and just on a stylistic note, why take perfectly good words and condesne them to "Chrg"? (charge?). It make things so much more readable when you don't freeze-dry the words.
 
Melinda Savoy
Ranch Hand
Posts: 387
Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply. I think I found that my problem is that I'm not getting at the _reqItems.

I am trying to refactor my code to get that populated before trying to use it. DUH.

I appreciate your time and input.

Regards.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic