This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes convert map  problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "convert map  problem" Watch "convert map  problem" New topic
Author

convert map problem

yu naki
Greenhorn

Joined: May 12, 2010
Posts: 2
I have a HasMap<String Set<Postcode>>postCodeMap in the action class and I hope to convert it 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 = java.util.Set<com.Postcode>

but none of them can work.

public Postcode class{
String type//key of hashMap
String postcode;

getter and setter
}

thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: convert map problem
 
Similar Threads
Address Book Java Issues
Criteria API
Problem with querying and one to many relationship..
strange type converter problem
finding action-mapping given the action name