This week's giveaway is in the Threads forum.
We're giving away four copies of Java Concurrency Live Lessons and have Doug Schmidt on-line!
See this thread for details.
Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • 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();
}
else
{
servletconnection = urlServlet.openConnection();
}

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