This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have an ActionForm to wrap an quiz. There are several questions, and every question has a text and a list of possible answers. I coded that with an indexed property in the ActionForm. Then every item of the list is a map object that contains 2 keys: -"text" which contains the text of the question -"answers" which contains the list of possible answers. Every answer is a map with 2 keys: -"text" contains the text of the answer -"true" contains true or false depending from the answer (if it is correct or not).
Then used nested tag library in my jsp (I used LabelValueBean for the string):
But it works well with the question, but it doesn't work with the answers (tomcat says it doensn't find anybean in question.answers.text.value), I thought because answers are too much structured? What is wrong with my approach??
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: nested dynamic properties in an ActionForm