aspose file tools*
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
JavaRanch » Java Forums » Java » JSP
Bookmark "About Map wrapper scheme" Watch "About Map wrapper scheme" New topic
Author

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
Marshal

Joined: Jan 10, 2002
Posts: 61226
    
  66

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: http://aspose.com/file-tools
 
subject: About Map wrapper scheme