File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

strange type converter problem

 
yu naki
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a hashMap<string,Set<postcode>>codeMap in action to receive a group of textfields values. Each map's value mapping with a textfield.

my convertFromString fuction, every is ok.

but when i want to convert the map back to textfield in result.jsp

<s:iterator value="codeMap">
<s:textfield value="%{value}><s:textfield>
</s:iterator>

the convertToString work but the parameter is NULL!!!

if I change the struts tag to:

<s:iterator value="codeMap">
<s:property/>
</s:iterator>

the convertToString function work well and the result page could display what I inputed in textfields

any know why struts can not forward map's value to convertToString? many thanks
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic