File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 60785
    
  65

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]
 
 
subject: About Map wrapper scheme
 
Similar Threads
Convert English word to arabic
What does this do? (function($){ ... })(jQuery);
For the Exam 1.4 what do I need to know about "Wrapper classes" ?
How to fool Michael Ernest
JSTL possibly not recognizing my class because it implents the Map interface