struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mreisz@4sxs.de" <mre...@4sxs.de>
Subject AW: Dynamic dropDown List
Date Thu, 20 Jan 2011 17:10:05 GMT
Thank you for your answer. Do you mean something like this:

<s:iterator value="questions" id="quest">
	<s:property value="questionId"/><br/>
	<s:property value="questionName"/><br/>
	<s:select name="answers[quest.questionId]" list="answers"/><br/><br/>
</s:iterator>

And in my bean I have the variable " private String[] answers;" with getter and setters...

But it is not working.... and the variable " quest.questionId" is not replaced by the value.

Other ideas?

Thanks and regards,
Mat


-----Urspr√ľngliche Nachricht-----
Von: Dave Newton [mailto:davelnewton@gmail.com] 
Gesendet: Donnerstag, 20. Januar 2011 17:49
An: Struts Users Mailing List
Betreff: Re: Dynamic dropDown List

On Thu, Jan 20, 2011 at 11:08 AM, mreisz@4sxs.de wrote:

>        <s:select key="??????????????" list="answers"/><br/><br/>
>

<s:select name="answers[question.id]" .../>?

Dave

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


Mime
View raw message