This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes S2: OGNL, calling a function on the action with parameters Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "S2: OGNL, calling a function on the action with parameters" Watch "S2: OGNL, calling a function on the action with parameters" New topic
Author

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

Eric Nielsen
Ranch Hand

Joined: Dec 14, 2004
Posts: 194
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

Joined: Dec 14, 2004
Posts: 194
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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: S2: OGNL, calling a function on the action with parameters