struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject Dynamic dropDown List
Date Mon, 17 Jan 2011 11:03:46 GMT

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

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

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

Thank you for your help,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message