Kevin,


> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin
> Jones
> Sent: Saturday, 20 January 2001 2:20
> To: [EMAIL PROTECTED]
> Subject: Re: urgent...
>
>
> > it is because con.getConnection() returns URLConnection and not
> > HttpURLConnection()
>
> No, it doesn't.
>
> getConnection uses the protocol specified in the URL to return a
> URLConnection of the 'right type'. In the case of http, that's an
> HttpURLConnection.

Unfortunately in the world of browsers things aren't so black and white.
IE returns it's own implementatation of HttpURLConnection which it not
a subclass of the standard java one, hence the class cast failure. So
you are stuck with using just URLConnection. More pain for applet
authors.

>
> Check the JDK help for details,
>
> Kevin Jones
> DevelopMentor
> www.develop.com
>

[snip]

Rob Griffin
Quest Software

E-mail: [EMAIL PROTECTED]
Web site: http://www.quest.com

___________________________________________________________________________
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

Reply via email to