wood burning stoves 2.0*
The moose likes Struts and the fly likes ONGL Question 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 "ONGL Question" Watch "ONGL Question" New topic
Author

ONGL Question

Saravanan Vijayappan
Ranch Hand

Joined: Jan 02, 2007
Posts: 47
Hello,

I am storing the below Catalog objects in List catalogList = new ArrayList() in action and it has correct getter/setter methods, how can access the fields from Catalog object in jsp through OGNL.



I tried the below OGNL expression in my jsp, but %{cat['name']} is not returning a value but the iterator works, Can some one please let me know the correct syntax to fetch the value from Object property. Thanks



Cheers,<br />Sarav
Saravanan Vijayappan
Ranch Hand

Joined: Jan 02, 2007
Posts: 47
I got the answer, I use this

1. <s:iterator id="cat" value="catalogList">
2. <s:submit value="%{name]}"/>
3. </s:iterator>
 
jQuery in Action, 2nd edition
 
subject: ONGL Question