This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JSP and the fly likes About Map wrapper scheme Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "About Map wrapper scheme" Watch "About Map wrapper scheme" New topic

About Map wrapper scheme

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

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

Joined: Apr 12, 2009
Posts: 44
Did you succeeded in using Wrapper .

I am just a brick in the wall of Java
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63349

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.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: About Map wrapper scheme
It's not a secret anymore!