I'm curious what the rationale was for certain collection return types in some servlet (2.3) specification methods.
All of the ones I found in the spec return Enumeration, except for one, which returns an array of String. What was the rationale for the one oddball? I can see that all the others get a list of "names" and the odd one returns a list of "values", but I don't see how that would make a difference. These are the ones I found (I may have missed some): Enumeration ServletRequest.getAttributeNames() Enumeration ServletRequest.getParameterNames() Enumeration ServletConfig.getInitParameterNames() Enumeration HttpServletRequest.getHeaderNames() String[] ServletRequest.getParameterValues() -- =================================================================== David M. Karr ; Java/J2EE/XML/Unix/C++ [EMAIL PROTECTED] ; SCJP ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html