Re: struts2 string to map conversion

2011-12-13 Thread mohan rao
Parameters will returns String[] but not string check out that might be causing the problem. -- View this message in context: http://struts.1045723.n5.nabble.com/struts2-string-to-map-conversion-tp5052114p5060791.html Sent from the Struts - User mailing list archive at Nabble.com. --

Re: struts2 string to map conversion

2011-12-12 Thread Li Ying
What is your client side code (JSP)? In OGNL expression, a value assignment is something like: "aMap[aKey] = aValue" So, you need create HTML code like: On the server side, the OGNL expression will be converted into Java method invoking like: yourAction.getAMap().put("aKey", "aValue") Unfortun

Re: struts2 string to map conversion

2011-12-06 Thread Wes Wannemacher
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 wrote: > any body knows how to use Struts2 TypeConversion(in xwork libs) to > convert a parameter string to a hashmap