force login pages to use HTTPS and then revert back to HTTP in tomcat 5.5

Hi All,

I want to use only login pages to use HTTPS and then revert everything back to HTTP for other pages.

My scenorio is,

I am using SSL in Tomcat 5.5.

I have deployed my simple login applicaion using Java,JSF in tomcat 5.5.

I am accession my application url as, HTTPS://localhost:8080/Login/login.faces

but when i logs in then also my url is still HTTPS://

but i want my url would be HTTP instead HTTPS after login.

Any suggessions will be appriciable.

Thanks

Sandip Patil

[550 byte] By [Sandip_Jsfa] at [2007-10-3 0:54:31]
# 1
You should just be able to send a redirect. I'm not sure in JSF, but in a servlet, you could just check if the requested URL is "http" and forward it to "https" and then after authentication, just redirect to an "http" url. HttpServletResponse.sendRedirect is the function for Servlets.
Zephryla at 2007-7-14 17:49:51 > top of Java-index,Java Essentials,New To Java...
# 2
When I've worked on things like this in the past, we used ServletFilters.
paulcwa at 2007-7-14 17:49:51 > top of Java-index,Java Essentials,New To Java...