File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Question on conditional test operator used in EL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Question on conditional test operator used in EL" Watch "Question on conditional test operator used in EL" New topic
Author

Question on conditional test operator used in EL

Melinda Savoy
Ranch Hand

Joined: Jun 21, 2005
Posts: 386

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

Joined: Jan 10, 2002
Posts: 60041
    
  65

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 ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60041
    
  65

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

Joined: Jun 21, 2005
Posts: 386

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
 
subject: Question on conditional test operator used in EL
 
Similar Threads
Can't see the EL syntax problem
JSTL c:forEach help?
complicate JSP tag : bodyContent
Question on using Ajax.Updater
Struts: How does indexed data get into a Form Bean?