I have a situation wherein im calling a servlet from an Applet using the HTTPUrlConnection class.
But whenever im trying to hit the servlet i can see in the Java Console that the call to the Servlet URL is automatically redirected to the login page of the application as it is secured.
Actually my requirement is to upload some files chunk by chunk to the server side code and this shud happen in the backend. So if a user is already logged in , then the applet should be able to go into the servlet. Moreover the login page that it is redirecting to also does not pop up , i just saw it in the Java Console.
Networking : Connecting to "..../Servlet" with JsessionID
Netwroking : Connecting to "..../login.html"