Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web form to hashmap using struts.

 
dave sag
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am building a page designed to edit the string based keys and values of a hashmap. in my form bean I have converted the hashmap to a collection of LabelValueBeans and wish to allow people to add further label:value pairs to the (reasonably short) list by just filling in a set of blank fields at the bottom. is the best way to do this simply to populate the collection with 3 or 4 rows of "","" data? and filter in my action. or is there a more recommended way to approach this.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic