struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mreisz@4sxs.de" <mre...@4sxs.de>
Subject Dynamic dropDown List
Date Mon, 17 Jan 2011 11:03:46 GMT
Hello,

I am currently developing a Portlet for Liferay using Struts 2, it is working good and I am
often surprised with all the possibilities from Struts2.
Unfortunately I have a blocker !
I would like to design a form with a survey thanks to dropDown List and would like to get
all the content from a database.
In the database, there are a table question (questionId, questionName) and a table answer
(answerId, answerName, questionId) and I would like to generate all the dropdown from these
table...

While (questions)
{
	<s:select name="question.getName()">
	While {answers from this question)
	{
		<option value="answer.getName()>
	}
	</s:select>
}


I tried many solutions, but I didn't achieved it!

Thank you for your help,
Mat

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


Mime
View raw message