Applet - Servlet Communication
Hi All,
I have one query regarding applet-servlet communication.
my application run on tomcat 4.0 , In my app.
applet call servlet with help of the URL class.
here code is
String servletUrl = "http://10.0.0.26:8080/webcount_v2_1/servlet/findData";
URL urlServlet = new URL(servletUrl);
URLConnection urlconnection = urlServlet.openConnection();
urlconnection.setDoInput();
urlconnection.setDoOutput();
InputStream inputstream = urlconnection.getInputStream();
ObjectInputStream objectinputStream = new ObjectInputStream(inputstream);
Vector vdata = (Vector)objectinputStream.readObject();
objectinputStream.close();
okk i think that right and i do in this way, if spell mistake then plz. ignor that b'coz my question is not releated to code.
When i openconnection , that connection call servlet from tomcat.is openconnection object can break the firewall of the my server windows NT 2003?
i ask this question b'coz some on told me that applet call servlet through the above code is not good b'coz it is break the firewall and then call servlet .
so could anyone guide me ?
Thanks
Shailendra Soni
|