Thanks for the prompt reply, David. I didn't realize that there was a Struts-EL library, where would I find such a beast? I don't see mention of it in the 1.1b3 distribution nor in the on-line docs.

Thanks again!

-- john


David M. Karr wrote:

"John" == John C Cartwright <John> writes:

John> Hello All,
John> I'm having some trouble getting the <html:select> tag to recognize the "value"
John> attribute in order to set the appropriate enclosed option to selected. It
John> works fine with a simple string, but doesn't seem to recognize a RT expression.

John> Here's the code sample:

John> <html:select
John> property="mapservicename"
John> value="${mapserviceDetailForm.mapservice.name}">
John> <html:optionsCollection
John> label="name"
John> property="mapserviceList"
John> value="name" />
John> </html:select>

John> There is a bean "mapservice" contained in mapserviceDetailForm, and it has a
John> property "name" that should identify the option to be selected.

John> Can anyone point out what I'm doing wrong?

Well, technically you're not using an "RT" expression, but an "EL" expression.
Those will only work with the Struts-EL library (or the JSTL). You're
obviously somewhat familiar with that, or you wouldn't have tried this.

Does that tell you what you need to know?



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

Reply via email to