I am still on a steep learning curve for struts/tiles and
to a degree, trying to remember certain things about
JSP. Anyway, struts has this construct I want to use
for building an HTML select tagset from a java collection.

Here's the jsp snippet:
<html:select property="contactInfoWidgetsSubFormCountryCode">
<html:options collection="countries"
            property="value" labelProperty="label"/>
</html:select>

The reference to "countries" is a java.util.Collection that is
put into the session. I have a class I wrote "CountryOptions"
that contains one static method:

public static Collection getOptions()

that creates what it needs to. Now what I need to figure out is
the best way to instantiate the "countries" variable in the session.
I think it might be by using the bean:define tag, but I am not
sure. Has anyone done this before?

Thanks.
Dean


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to