>>>>> "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?

-- 
===================================================================
David M. Karr          ; Java/J2EE/XML/Unix/C++
[EMAIL PROTECTED]   ; SCJP; SCWCD




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

Reply via email to