YOu may want to do the following

URL action = new URL(pathname);
 
URLConnection url = action.openConnection();

There is  a file very useful at http://www.livesoftware.com/src/appletservletcomms/
Amy
 

Carlos Navarro Bernabé wrote:

 Hi,     I'm just learning.... i'm trying to build a java based Chat using HTTP protocol. But i'm having some problems. My applet produce a java.lang.ClassCastException when trying to get a HTTPUrlConnection from a UrlConnection. I did it by this way: serverURL = new URL(serverURLname);HttpURLConnection httpuc = (HttpURLConnection) serverURL.openConnection(); Where i'm going wrong?There's some better way to do this? Thanks,             Txals de Bitrir

--
Amy Wan
local: 3208
2WB08
 

Reply via email to