struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cwalet <cwal110...@gmail.com>
Subject struts2 string to map conversion
Date Tue, 06 Dec 2011 13:46:46 GMT
any body knows how to use Struts2 TypeConversion(in xwork libs) to
convert a parameter string to a hashmap object?
I tried this:

@TypeConversion(key = "phone", rule = ConversionRule.MAP, converter =
"java.lang.String")
public void setHmss(HashMap<String, Object> hmso) {
		this.hmso = hmso;
}

but no convert had it done.how?any suggestion?

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


Mime
View raw message