Thanks Nandan,

Ex:
loop
   set MESSAGE = "somevalue"
   set MESSAGE to be value of 1 radio button
end loop

If there's 2 or more radio buttons in 1 loop, so we will have two or more values for only 1 MESSAGE variable?, so, the last value which is set to MESSAGE variable will be the common value for two or more radio buttons? how can we set different values for each radio button in 1 loop?

any solution for this case ?

Anh Tuan

----- Original Message ----- From: "Nandan" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Friday, May 20, 2005 4:46 PM
Subject: Re: [HELP] Couldn't include <bean:write> tag in onClick in <html:radio>



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(&#34;MESSAGE&#34;);'
/>

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(&#34;<bean:write name="rule"
property="auctionTypeId"/>&#34;);'/>

and the result: html source code shows like below:

<input type="radio" name="auctionTypeId" value="1" checked="checked"
onclick="javascript:whichAuctionType(&#34;<bean:write name="rule"
property="auctionTypeId"/>&#34;);">

<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]





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



Reply via email to