Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Applet Servlet with HTTPS ?  RSS feed

Engin Okucu
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,

I want to have more information to create a connection between an applet and a servlet. I'm using Resin , Resin works with HTTPS, i configured it with JSSE. I 'm in trouble to know if what i'm doing is correct or not ?
I do my connection in my applet as follow :

URL urlServlet = new URL("https://localhost/project/mainservlet?function=init");
URLConnection servletconnection = null;
if (web_version)
servletconnection = (HttpsURLConnection)urlServlet.openConnection();
servletconnection = urlServlet.openConnection();

Thanks for helping.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!