I have several jsp pages that are referenced in an SSL server, and non-SSL server. To avoid the "this document contains some unencrypted data" error, I want to have it look at the HTTPS variable apache sets and see if its in secure mode.

JIA Java Italian Association

There is a request method getScheme()that gives you the scheme used for the request (i.e. http or https). Maybe could be the easiest solution.