Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem using html:option

 
Jag Bains
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have an object that contains two collections.
I write the object to HttpServletRequest so that the struts tags can use them.
I now have a page where I want to use the html ption tag using one of the collections in my object.
I can see how to do it if I just had the collection in the HttpServletRequest, but I can't see how I can access objects within the objects.
Can anyone point me in the right direction?
Thanks
Jag
 
Sazzad Rafique
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
You want to access a collection object from an object that holds two collections. So, why don't you put a method in your collection holder class to return the collection. Once you have the collection returned by calling that method then you know how to display the contents of the collection using html ption.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic