File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Problem using html:option Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem using html:option" Watch "Problem using html:option" New topic

Problem using html:option

Jag Bains
Ranch Hand

Joined: Nov 19, 2002
Posts: 39
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?
Sazzad Rafique

Joined: Jul 29, 2003
Posts: 5
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.
Consider Paul's rocket mass heater.
subject: Problem using html:option
It's not a secret anymore!