This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Problem redirecting to HTTPS from jsp Links Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

Problem redirecting to HTTPS from jsp Links

Vins Ver
Greenhorn

Joined: Oct 14, 2009
Posts: 11
Regret Posting this in servlets section instead of JSP. Mods please delete this thread. creating a new thread in JSPs section. Thanks.

I have an application running on 9i Application Server in HTTPS mode and working on migration to 10g Application Server.

The problem:

HTTPS has beeen configured on the 10g AS and a virtual host name (<VirtualHost-Name>). so when i access my application using a URL, https://<VirtualHost-Name>/login.jsp i can see the login page. On logging in the application uns perfectly fine. The application has few links. On clicking these links, the page is redirected to other jsps. This is done by using response.sendRedirect(/<context-name>/NextPage.jsp). Now once we have logged on, i can see the https URL in the address bar of IE. but once i click the link, it is redirected to http and the URL in IE address bar is http://<serverName>:<port>/<context-name>/NextPage.jsp. This redirection fails as a timeout. I cannot figure out why is the click on link redirecting to http URL with server-name and port. Some of the questions i have:

1. How can i make the page redirect to https. Also, the page should be redirected using the VirtualHost-Name.
2. Why is the <VirtualHost-Name> is being changed to <serverName:><port>

Thanks for help. Regards...

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60804
    
  65

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please read this for more information.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem redirecting to HTTPS from jsp Links
 
Similar Threads
ssl with Tomcat
Problem redirecting to HTTPS from jsp Links
Tomcat behind Apache -- How to handle SSL?
Tomcat - Apache connector problem
Servlet Access from URL