On 11/11/05, ooper <[EMAIL PROTECTED]> wrote:
> I am wondering if it is possible to set the value of an html:select tag 
> attribute dynamically. I want to do something like this:
>
> <html:select name="formName" property="operand1" 
> styleClass="${filterControlStyle}">
>
> The above gives this error:
> "According to TLD or attribute directive in tag file, attribute styleClass 
> does not accept any expressions"

Switch to the EL version of the Struts HTML tags and it will work.
   http://struts.apache.org/struts-el/tlddoc/index.html

Change to
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html-el"; %>
and add the .jar files found under the 'contrib' directory in a Struts
1.2.x distribution.

Alternately, it shoudl work as-is in a JSP 2.0 container.

--
Wendy

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

Reply via email to