Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ONGL Question

 
Saravanan Vijayappan
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Saravanan Vijayappan
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got the answer, I use this

1. <s:iterator id="cat" value="catalogList">
2. <s:submit value="%{name]}"/>
3. </s:iterator>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic