Originally posted by Bharatesh H Kakamari:
How do I change the code in the Servlets to only accepts https (SSL) connections rather than http connections ?
This is more an application server set-up or request filtering issue. Arguably, the servlets themselves should be agnostic. Having said that, look into HttpServletRequest.getAuthType().
HTTPS: Secure version of HTTP. This is what makes it safe to transfer CC numbers online and other personal information private
In Gates we trust. Yeah right....
Originally posted by Mark Leong:
Can I just move the servlets (without changes) to a web server with SSL support and expect them to work?
Maybe, you'll have to evaluate the servlet code and the new webserver.
1) Does the webserver implement the same version (or higher) of the servlet API that your existing server does?
2) Did your servlet code use any propietary packages or code from your origninal server that isn't included or supported on the new one?
3) Does the new server have a documented bug that will prevent your code from executing properly?
If this evalutes positively then the only thing you can do is test it. Chances are there will be some tweeking to be done to either your servlet code or to the configuration of the new server.
Hope This Helps