Hi all,

Forgive what may be a stupid question:

I am trying to retrieve all the locales from the Accept-Language header
in a request. To do this I use the following call:

Enumeration locales = pageContext.getRequest().getLocales();

My problem is that once I have enumerated through this variable locales,
there is no way I can see to "reset" it so I can enumerate through it
again.

I also cannot seems to find a way to clone this object, as Enumeration
is not a child of java.lang.Object, but an interface.

Can anyone shed some light on the "correct" way to enumerate through an
Enumeration more than once?

Regards,
Graham
-- 
-----------------------------------------
[EMAIL PROTECTED]                "There's a moon
                                        over Bourbon Street
                                                tonight..."

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to