Forums Register Login

URLConnection

+Pie Number of slices to send: Send
Hi, the following code snippet:
URL url = new URL(http://localhost:8080/SomeContext/servlet/SomeServlet);
URLConnection con = url.openConnection();
con.setUseCaches(false);
con.getInputStream();
Will the above code get connection to localhost:8080/SomeContext/servlet/SomeServlet?
+Pie Number of slices to send: Send
Hi There,
Except the arguement to the constructor for URL, which should be a Sting object, the code looks fine to me.
regards
ravee.
I can't take it! You are too smart for me! Here is the tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 728 times.
Similar Threads
URLConnection
tomcat can't find servlet
tomcat4
Netscape problem with Applet-Servlet Comm.
Servlet Contrlloer Path Issue
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 05:55:51.