struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yunaki <yun...@126.com>
Subject strange type converter problem
Date Wed, 12 May 2010 19:07:00 GMT

I have a hashMap<string,Set<postcode>>codeMap in action to receive a group of
textfields values. Each map's value mapping with a struts textfield. 

my convertFromString fuction work well, all textfield could be converted to
a Set<postcode>. 

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 object 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 

-- 
View this message in context: http://old.nabble.com/strange-type-converter-problem-tp28539920p28539920.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Mime
View raw message