File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes getValues in TagSupport Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "getValues in TagSupport" Watch "getValues in TagSupport" New topic
Author

getValues in TagSupport

nikhil krish
Greenhorn

Joined: Apr 21, 2003
Posts: 1
Can anybody tell me what will be returned by the getValues in TagSupport class. This method does not take any argument. So will it return an enumeration of all values set using setValue methods. Kindly clarify
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
TagSupport has an internal Map storage that you can use. You can add Objects to that Map that you may need in your processing but, don't want to make a variable with getters and setters for. To add it you call the setValue(String, Object) To get it, you can call getValue(String) and as with all Map's you can get all the Keys that where added to the Map you use getValues() This returns an Enumertion of the Keys to the Map (Kind of a misleading name, should be getValueKeys()).
This is useful when you need to have access in a child tag to an Object in a parent Tag but, don't want to have it available outside the Tags life cycle.


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
 
GeeCON Prague 2014
 
subject: getValues in TagSupport