Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

convert map problem

 
yu naki
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic