I have searched the archives and can't find a direct answer to this:

I am using html:optionsCollection within an  html:select tag.

My form bean has a method getTaskCodeTypeOptions that returns a collection
of beans with name and value properties

and my JSP is coded as follows:

<html:select property="taskCodeType"><html:optionsCollection
property="taskCodeTypeOptions"  /></html:select>


MY JSP WILL RUN AND POPULATE THE SELECT TAG CORRECTLY, BUT IT DOESN'T CHOOSE
THE CORRECT INITIAL VALUE.

IE. THE "SELECTED" property is not set correctly.


Does anybody have this working?

-jm


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

Reply via email to