This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am trying to create a dynamic form on my web app, and thought the map based action form would be my best choice (I am wedded to struts). I will be putting up x amount of properties, some single select, some multiple select. However, when I write my unit tests , I am seeing that struts will not put a String into a mapped property - it will only take the first value - here's my test code:
I get a ClassCast Exception on this line: String results = (String) resultMap.get("by Service Code");
Any ideas what causes this or how I can build a form that I won't know the properties til runtime ?