|
YOu may want to do the following
URL action = new URL(pathname);
There is a file very useful at http://www.livesoftware.com/src/appletservletcomms/
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 --
|
- Applet/Servlet HTTP communication Carlos Navarro Bernab�
- Amy Wan
