• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About Map wrapper scheme

 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks[Bear],

I come across the question "How to use jsp:useBean in servlet" in Jsp forum . In that Bear mention About Map Wrapper . I want to know about this . i did google ,but not able to get the information about Bear's Map Wrapper .

Please Can you give me the url to learn about Map wrapper
 
Steve James
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you succeeded in using Wrapper .
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Essentially I just create a class that is a wrapper around a Map instance. I store the parameter map in this Map instance. Getters on the class provide bean-like access to the expected properties.

This makes it easy to "set" a large number of parameters without having to set each and every one, yet has all the benefits of a true bean with respect to getters.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic