No, use a defined bean.

<bean:define name="citycode">
  <bean:write name="userAccountForm" property="citycode"/>
</bean:define>

<html:select property="provincecode" styleClass="normalblack"
          onchange="<%="province(userAccountForm,'" + citycode +
"')"%>">



--
James Mitchell
Web Developer/Struts Evangelist
http://www.microsoft.com/struts/



> -----Original Message-----
> From: Richard Raquepo [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 27, 2003 10:18 PM
> To: Struts Users Mailing List
> Subject: error in my html:select tag
> 
> 
> i have this code in my jsp
> :53     <html:select property="provincecode" styleClass="normalblack"
>           onchange="province(userAccountForm,'<bean:write 
> name="userAccountForm" property="citycode"/>')">
> 
> but i get this error:
> [ServletException in:/manager/addtm-body.jsp] 
> /manager/addtm-body.jsp:53: expected `>' at ``"'' (for tag 
> `<html:select>' at line 53).  The XML tag syntax is: <tag 
> attr1='value1'>'
> 
> can't i combine a bean:write in a html:select tag?
> 
> thanks
> 
> 
> 


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

Reply via email to