From: "Ashish Kulkarni" <[EMAIL PROTECTED]>
> is it possible to use <html:select tag with
> enumeration, if yes how

> <form-property name="as400list" type="java.util.Enumeration" />

Does this work??  Enumeration is an interface, don't form properties have to
be concrete types?  I don't see how the framework could populate this from
the request, it wouldn't know what type of object to create.

http://struts.apache.org/userGuide/building_controller.html#dyna_action_form_classes

"The types supported by DynaActionForm include:
... boolean and java.lang.Boolean ... java.lang.String ...
You may also specify Arrays of these types (e.g. String[]). You may also
specify a concrete implementation of the Map Interface, such as
java.util.HashMap, or a List implementation, such as java.util.ArrayList."

Moving on...

> <html:select property="system" size="1"
> multiple="false">
> <!-- what do i enter here -->
> </html:select>

I use a Map of months (key is the month number, value is the month name):

<html-el:select property="calendarMonth" onchange="standardTab();">
  <html-el:options collection="months" property="key"
labelProperty="value"/>
</html-el:select>

I have no idea if an Enumeration will work.  The docs for 'options' talk
about Collections, but my Map works just fine, so... give it a try.

-- 
Wendy Smoak


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

Reply via email to