wood burning stoves 2.0*
The moose likes Servlets and the fly likes networking Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "networking" Watch "networking" New topic
Author

networking

praveen gauravaram
Greenhorn

Joined: Sep 23, 2001
Posts: 2
Very urgent. I would like to know which socket I have to use to connect a frame application(GUI) to the servlet
Dorj Galaa
Ranch Hand

Joined: May 29, 2001
Posts: 113
String ConnectionURL="http://locakhost:80800/servlet/MessageServlet";
URL url1 = new URL(ConnectionURL);
URLConnection urlconnection1 = url1.openConnection();
urlconnection1.setDoInput(true);
urlconnection1.setDoOutput(true);
urlconnection1.setUseCaches(false);
urlconnection1.connect();
DataOutputStream out1 = new DataOutputStream(urlconnection1.getOutputStream());
out1.writeByte(115);
out1.flush();
out1.close();
DataInputStream in1 = new DataInputStream(urlconnection1.getInputStream());
in1.close();

Senior software engineer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: networking
 
Similar Threads
WA #1.....word association
Cant use object from another class
Posting to bump up my count...
Text box value is not being completely filled with request attribute
The x900 effect ?