hi, i have a form which holds a textfield (name:username). I need to wrap this username into an object user and insert it into a map as the value object for the key 'field0'.
Action class: User user; //with setters and getters. Map<String, User> map = new LinkedHashMap< .., .. >();//with setters and getters Map<String, String> mapString = new LinkedHashMap< .., .. >();//with setters and getters JSP: <s:textfield name="map['field0'].name" /> <!--Throwing errors: parameter chunk is ignored etc--> <s:textfield name="mapString['field0']" /> <!-- Filling the object map as: ["field0", nameEnteredInTextbox ] --> How do i get the map filled as : ["field0",UserObjectHoldingusername ]... Any ideas as how to get this working? cheers, ravi -- View this message in context: http://www.nabble.com/S2-insertnig-key-and-pojo%28as-its-value%29-into-a-map-tp15426127p15426127.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]