element is collection in conversion properties

2010-05-15 Thread yunaki
I have a HasMap>postCodeMap property in the action class and I hope to convert it's value into String type, Any know how can I write Element_xxx in action-convertion-properties file? I try Element_postCodeMap = java.util.Set and Element_postCodeMap = java.util.Map.Entry and Element_postCodeMap

strange type converter problem

2010-05-12 Thread yunaki
I have a hashMap>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. but when i want to convert the map back to textfield in result.jsp the con

access map's value in object stack

2010-05-12 Thread yunaki
i have a Map in object stack, struts can use tag to access each member, but how can I access map's value to set it to a tag's value. // that work well //set map's value to textfield Many thank -- View this message in context: http://old.nabble.com/access-map%27s-value-in-ob

type convertion about complex object question

2010-05-08 Thread yunaki
I want to convert a group of html input tag into hashmap? each value of html input tag is for a set of Sequence Objects. e.g. code in input.jsp a converter split the value by vertical bar, the left part of the value contains two id property for Property1 and Property2 objects in each new S

iterator map and set hidden value

2010-04-29 Thread yunaki
I iterate a hashmap in object stack, I wish to set each element id to a hidden tag id and set element value to the hidden value attribute. Any have idea? Thx I tried following code but not work -- View this message in context: http://old.nabble.com/iterator-map-and-set-hidden-

Re: use servletcontext in typeconvert

2010-04-28 Thread yunaki
Thanks all you answer. I am new in spring and I found the class that implements ApplicationContextAware,But I want to get attributes from Object Stack or the Context Map(session or applcation). Sorry question did not make sense. yunaki wrote: > > in the convertFromString method, I hope

use servletcontext in typeconvert

2010-04-27 Thread yunaki
in the convertFromString method, I hope to use servletcontext to get a applcation context property. Is it possible?thx -- View this message in context: http://old.nabble.com/use-servletcontext-in-typeconvert-tp28382360p28382360.html Sent from the Struts - User mailing list archive at Nabble.com.