Title: RE: [Re: servlet sessions and https URLs]

Hello Pankaj,

Ok .. Now I clearly understand your first question. I'm not sure about this but ... I think that only Applet can make SSL connection ('cos it runs on Web Browser which has SSL mechanism) Java Standard API didn't provide SSL connection then Application ... it can't  and in Servlet ... you use URL and URLConnection classes then it can't either ... let's find out more for this answer.

About how can Applet communication to servlet. There are many ways .... from RAW socket , HTTP Request ... to RMI ... using HTTP is the simplest way (Like you do, using URL and URLConnection class) ... I think socket is the worst thing you could use (except that you want to communicate with very small data without much overhead) ... I never use RMI ... if you implement this for Internet (which I think ...shouldn't use Applet, only plain HTML gains better performance) ... the best way is to use HTTP 'cos it can go through proxy or firewall (which normally allow HTTP) ... But if it's for Intranet on fast reliable network ... RMI maybe the better solution.

Anyway, if you wanna see example how to use those communication http://java.sun.com/docs/books/tutorial/  can tell you.

Hope this help,
Siros

Reply via email to