Hello, Please replace your code with something like this:
<script language ="javascript" > var MESSAGE = "<bean:write name="rule" property="auctionTypeId"/>" ; </script>
<html:radio name="exhibit_item_request" property="auctionTypeId"
value="<%= (String)rId%>"
onclick='javascript:whichAuctionType("MESSAGE");'
/>
If it does work, I will then explain to you why :)
-----Original Message-----
From: Pham Anh Tuan [mailto:[EMAIL PROTECTED] Sent: 20 May 2005 05:46
To: Struts Users Mailing List
Subject: [HELP] Couldn't include <bean:write> tag in onClick in
<html:radio>
Hi all,
I couldn't include <bean:write> tag in onclick attribute of <html:radio> like below:
<html:radio name="exhibit_item_request" property="auctionTypeId" value="<%= (String)rId%>" onclick='javascript:whichAuctionType("<bean:write name="rule" property="auctionTypeId"/>");'/>
and the result: html source code shows like below:
<input type="radio" name="auctionTypeId" value="1" checked="checked" onclick="javascript:whichAuctionType("<bean:write name="rule" property="auctionTypeId"/>");">
<bean:write> is not recognized!
help me, plz :(
Anh Tuan
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]