> I would like to construct a select-element with a pre-selected
> attribute.

That's part of the magic of Struts.  Set the value of the property in the
form bean, and that value will be selected when the framework generates the
HTML for the select list.

Here's one of my select lists:

<html-el:select property="purpose">
     <html-el:options collection="contactPurposes" property="key"
labelProperty="value"/>                   
</html-el:select>

I don't do this, but I'd think that the reset method would be an appropriate
place to set your defaults.  That gets called before the form bean is
populated from the request and then displayed.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management

Reply via email to