struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wes Wannemacher <w...@wantii.com>
Subject Re: struts2 string to map conversion
Date Tue, 06 Dec 2011 15:09:33 GMT
Have you read through this -

http://struts.apache.org/2.x/docs/ognl-basics.html

The type conversion is generally called automagically.

-W

On Tue, Dec 6, 2011 at 8:46 AM, cwalet <cwal110120@gmail.com> wrote:
> 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
>



-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

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


Mime
View raw message