I am trying to run a servlet on tomcat in eclipse. When i do run on server, the servlet runs and provides me with a link like follows:
\"http://localhost:8443/AuthServe
If I understand your problem correctly, you are publishing a URL for http
from a web page served by your servlet.
If you need to change the request to be https
instead you should redirect
your plain http
connector (in port 80
or 8080
where you have it) to connector for port 443
.
If you google tomcat redirect http to https
you wil find plenty of links e.g. redirect tomcat to https
But I would recomend that you did not redirect if you are interested in real security