struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Klaasen (TeleRelay)" <tom.klaa...@telerelay.com>
Subject RE: How to set RadioButton value dynamically within Iterate?
Date Fri, 09 Nov 2001 12:03:13 GMT
<html:radio name="blah" property="blahblah" value='<%=myValueVar%>'/>

hth,
tomK


> -----Original Message-----
> From: Greg Callaghan [mailto:greg_callaghan@hotmail.com] 
> Sent: vrijdag 9 november 2001 3:19
> To: struts-user@jakarta.apache.org
> Subject: How to set RadioButton value dynamically within Iterate?
> 
> 
> Hi,
> 
> Is it actually possible to set the value associated with 
> RadioButtons within 
> an iterate loop.
> 
> For example if the FormBean is a collection of possible 
> answers and I would 
> like to set the value for each radio button (ie user will 
> select one of the 
> answers) to the IDs for answers (ie database primary key).  
> Hence I really 
> just want to be able to do this -:
> 
> HTML END RESULT
> -----
> <input type="radio" name="ques1" value="34">Answer1 - Was it x<BR>
> <input type="radio" name="ques1" value="12">Answer1 - Was it z<BR>
> <input type="radio" name="ques1" value="123">Answer1 - Was it y<BR>
> -----
> 
> In summary, is it possible in the <HTML:RADIO.. struts tag to 
> DYNAMICALLY 
> set the value of the value??????
> 
> 
> Regards
> Greg
> 
> 
> 
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at 
> http://explorer.msn.com/intl.asp
> 
> 
> --
> To unsubscribe, e-mail: 
>   <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:struts-user-help@jakarta.apache.org>
> 
> 

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


Mime
View raw message