This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

S2: OGNL, calling a function on the action with parameters

 
Eric Nielsen
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm working on something a little bit like a data grid. However, while the current display is tabular, the data backing it isn't. As a result I can't use straight map notation to access the values to display.

The relevant portion of the jsp looks like


The action looks like:

EscursionBase implements ActionSupport; the jsp shown before is hooked up to the INPUT result of the action.

The line preceding the <!-- 1 --> works properly, so I thought I knew how to call functions with parameters in OGNL. The line around <!-- 2--> does not work. The breakpoint just inside the function is not hit. However there are no errors in the log. What am I missing?
 
Eric Nielsen
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, I've tried reformulating it to use straight maps and not a functional lookup. I've tried both OGNL and regular EL notations. None of them seem to work -- in all cases the function backing the map property is not invoked. I changed the logging from INFO to DEBUG, but nothing jumps out at me.

What should I be looking for in the log to see why the function isn't getting invoked? What else should I try?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic