You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Marcos Oliva <MO...@SeeBeyond.com> on 2003/04/10 06:41:14 UTC

I am new to struts and I want to know what is the problem in using the following statment:
 
<html:select property="personId">
        <html:option value="<bean:message key='User.personId'/>">
        </html>
        <html:option value="value_2"/> 
        <html:option value="value_3"/>
     </html:select>
 
I am getting a jsp.error.attribute.noequal'  error , 
 
thanks
 

Re: Posted by Affan Qureshi <qu...@etilize.com>.
Two problems:

1. you cannot use a tag as a value for another attribute, so <bean:message>
tag needs to go away, use a <%=  %> for the attribute value.

2. <html:option > tag is not closed properly.

Affan

> I am new to struts and I want to know what is the problem in using the
following statment:
>

> <html:select property="personId">
>         <html:option value="<bean:message key='User.personId'/>">
>         </html>
>         <html:option value="value_2"/>
>         <html:option value="value_3"/>
>      </html:select>
>
> I am getting a jsp.error.attribute.noequal'  error ,
>
> thanks
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: Posted by Mark Galbreath <ma...@qat.com>.
Don't use single quotes - the JSP engine will resolve the embedded <bean>
tag before resolving its parent.

Mark

-----Original Message-----
From: Marcos Oliva [mailto:MOliva@SeeBeyond.com] 
Sent: Thursday, April 10, 2003 12:41 AM
To: struts-user@jakarta.apache.org
Subject: <html:Select question


I am new to struts and I want to know what is the problem in using the
following statment:
 
<html:select property="personId">
        <html:option value="<bean:message key='User.personId'/>">
        </html>
        <html:option value="value_2"/> 
        <html:option value="value_3"/>
     </html:select>
 
I am getting a jsp.error.attribute.noequal'  error , 
 
thanks
 



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org