Socket « Communication « JSP-Servlet Q&A





2. Servlet-Application communication    coderanch.com

wow! thanks James, you really helped me out. you know using HttpURLConnection,i was able to talk to my servlet. for your question: my applet calls my servlet for the retrieval of some data from the database and the servlet ,after talking to the database ,responds. I've not used the same code for my application and applet due to the behaviour of ...

3. Client-Server Communication using servlets    coderanch.com

hi everyone,i have to get avaliable ports on client side portList =CommPortIdentifier.getPortIdentifiers(); int c = 0; while ( portList.hasMoreElements()) { System.out.println(" c == "+ c); c++; portIdentifier = (CommPortIdentifier)portList.nextElement(); System.out.println(portIdentifier.toString()); System.out.println(portIdentifier.getName()); } portIdentifier = CommPortIdentifier.getPortIdentifier("COM1"); System.out.println(portIdentifier+"portIdentifier"); portID = (SerialPort)portIdentifier.open("Serial",10); when client sends request the server knows ipaddress of client can it open client ports (OR) is there any other solution .Please ...

4. applet-servlet communication    coderanch.com

5. Application and servlet communication    coderanch.com

OK, so it looks like the stream header hasn't been written. It's been a bit since I've done this, so I'm, really not sure. But in the one example I've found where I've done something similar, there seem to have been two differences that might be important: - a POST request was used (sending a serialized object in a GET request ...