my dog learned polymorphism*
The moose likes Servlets and the fly likes HTTP and HTTPS 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
Bookmark "HTTP and HTTPS" Watch "HTTP and HTTPS" New topic
Author

HTTP and HTTPS

Mary Cole
Ranch Hand

Joined: Dec 02, 2000
Posts: 362
If you browse any banking sites, some of the pages will be HTTPS and some will be HTTP pages. Since I have a single application, can I make some links to post to HTTPS and some to HTTP. Pls note, I don't want to hard code the URL ( like https://somedomain/somepage.do).

My Environment is as follows

client==>> IBM HTTP Server ==>> WebSphere

When the client hits my site, all my data entry screens have to be HTTPS and reamining pages(static JSPs) have to go thru normal HTTP.

FYI,am using struts and I CANNOT use struts ssl -extn as I have a http server in front of the App server.If I had only appserver, this would have worked.

Any suggestions? pls help its urgent
Mary Cole
Ranch Hand

Joined: Dec 02, 2000
Posts: 362
Any luck guys?
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30130
    
150

Mary,
The easiest way to handle this is to make all the pages https (except possibly the first page.) Then you can use relative links within the https pages. If you need to switch between http and https, you need to use an absolute path.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: HTTP and HTTPS
 
Similar Threads
SSL and Non SSL
SSL
Multiple application in JBoss
Secure and Non Secure
SSL