my dog learned polymorphism*
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 Android Security Essentials Live Lessons this week in the Android 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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: S2: OGNL, calling a function on the action with parameters
 
Similar Threads
Accessing a beanList Returned from JSP
Strurs2 example to fetch the data from database and display it on a JSP page
List values are not bind with text fields
List not refreshing after submit
spaces while populating using s:iterator