• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem redirecting to HTTPS from jsp Links

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...
 
Vins Ver
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any idea people?

Cheers..
Vins
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you post the jsp code for the link
 
Vins Ver
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
am able to redirect now to the https server with test SSL signature. made changes to the ssl.conf of the application server.... now have to test it for a valid digital signature.

cheers.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic