struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dalibor Kezele" <d.kez...@ecom.hr>
Subject Re: How to set RadioButton value dynamically within Iterate?
Date Fri, 09 Nov 2001 11:27:11 GMT
From: "Greg Callaghan" <greg_callaghan@hotmail.com>
To: <struts-user@jakarta.apache.org>
Sent: Friday, November 09, 2001 3:19 AM
Subject: How to set RadioButton value dynamically within Iterate?


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

I'm interested in that answer, too, cause I've a similar problem.



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