Change protocol when redirecting a request for a servlet to jsp

Hello,
In my servlet, There is a line of code:
getServletConfig().getServletContext().getRequestDispatcher("/page.jsp").forward(request,response);
My question is: I'd like to change the current protocol (like http) to new protocol (like https) or versa vista before my servlet executes the above line.
Is this possible to implement that? If so, how can I do it?
If not implement, Is there any ways to convert back or forward between http and https protocols in java, servlet or jsp?
I did try to use window.location.href="protocol://myserver/..." in javascript to redirect the jsp page to the right protocol, but the session for the browser was lost, and the jsp page ran into infinite loop.
Thanks in advance for any helps.
Mike.

if (!request.isSecure()) response.sendRedirect("https://me.com/page.jsp");
(or visa versa)

Similar Messages

  • I have downloaded firefox but when I open it I get the following message 'Firefox has detected that the server is redirecting the request for this address in a way that will never complete'. What do I do?

    I have downloaded firefox but when I open it I get the following message 'Firefox has detected that the server is redirecting the request for this address in a way that will never complete'. What do I do?

    See:
    * http://kb.mozillazine.org/The_page_is_not_redirecting_properly
    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"

  • WhenI send an email the following appears, the page isn`t redirecting properly, firefox has detected that the server is redirecting the request for this address in a way that will never complete

    firefox has detected that the server is redirecting the request for this address in a way that will never complete

    This issue can be caused by corrupted cookies.
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    See also:
    * http://kb.mozillazine.org/The_page_is_not_redirecting_properly

  • Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    keep getting this error:
    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
    I've also tried in IE and got this page can not be displayed.
    Cleared cache, deleted cookies.
    I'm trying to access grrlzrock.com I was using it about an hour ago, and now it doesn't work. any idea?

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > Cookies: "Show Cookies"
    *http://kb.mozillazine.org/Cookies
    *https://support.mozilla.org/kb/Deleting+cookies
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • "The page isn't redirecting properly, Firefox has detected that the server is redirecting the request for this address that will never complete" has anyone come across this staement?

    This statement pops up on some occasions when I am sending an Email, but the Emails are usually received by the recipient! who are mostly Family so I have been able to check that that have been read.

    Hi mawhitehead,
    try these
    * '''The page is not redirecting properly''' - MozillaZine Knowledge Base<br>http://kb.mozillazine.org/The_page_is_not_redirecting_properly
    * '''Network.http.redirection-limit''' - MozillaZine Knowledge Base<br>http://kb.mozillazine.org/Network.http.redirection-limit
    * I am unable to access my gmail calender. It states that refused because of cookies being blocked.<br>https://support.mozilla.com/en-US/questions/786049
    * tried posting new thread on sourceforge shareaza forums, firefox gives problem loading page, <br>https://support.mozilla.com/en-US/questions/757368
    * Firefox has issues redirecting, cookies are all on, I think I voided my warranty. <br>https://support.mozilla.com/en-US/questions/755435
    * firefox message: &quot;The page isn't redirecting properly&quot; Firefox has detected that the server is redirecting the request for this address in a way that will never complete.<br>https://support.mozilla.com/en-US/questions/695393

  • Firefox has detected the server is redirecting the request for this address in a way that will never complete. This is happening in my email program with comcast but does not happen with IE e

    Question
    firefox has detected the server is redirecting the request for this address in a way that will never complete. This is happening in my email program with comcast but does not happen with IE e edit

    Thanks to cor-el for the suggestion given in the link. Sadly I have to report:
    1) It is not a bookmark problem and it makes no difference whether I put
    www.adobe.com or 192.150.18.117 in the address bar.
    2) Cookies are allowed and there are no exceptions set
    3) All cookies have been deleted
    4) network.http.sendRefererHeader is already set to 2
    That deals with the items in the linked document.
    Additional information:
    5) I can get into the adobe site from a clean "in memory" installation of PuppyLinux using Seamonkey using the same router and dhcp setup.
    6) un-installing all Mozilla products - rebooting and re-installing makes no difference even when I remove the mozilla folder from docs&settings.
    so as I said in previous post (as annonymous) not a lot makes sense.
    Bear in mind that I have no problem running tracert in a command window
    Tracing route to www.adobe.com [192.150.18.117] over a maximum of 30 hops:
    1 11 ms 10 ms 9 ms 10.0.0.1
    2 13 ms 12 ms 11 ms glo-2-dsl.as9105.net [212.74.111.191]
    3 13 ms 12 ms 11 ms ge1-2-27.glo0.as9105.net [212.74.106.106]
    4 14 ms 12 ms 13 ms pos0-0.bri1.as9105.net [212.74.108.162]
    5 17 ms 16 ms 17 ms ge0-0-0.he-lon0.as9105.net [212.74.109.14]
    6 17 ms 17 ms 16 ms 10.72.11.75
    7 16 ms 17 ms 17 ms xe-0-3-0-10.lon20.ip4.tinet.net [213.200.77.177]
    8 91 ms 92 ms 99 ms xe-5-1-0.was12.ip4.tinet.net [89.149.184.34]
    9 92 ms 92 ms 93 ms xe-0.equinix.asbnva01.us.bb.gin.ntt.net [206.223.115.12]
    10 162 ms 170 ms 162 ms as-3.r20.snjsca04.us.bb.gin.ntt.net [129.250.2.167]
    11 166 ms 166 ms 165 ms ae-1.r07.snjsca04.us.bb.gin.ntt.net [129.250.5.53]
    12 162 ms 163 ms 161 ms xe-0-2-0-3.r07.snjsca04.us.ce.gin.ntt.net [128.241.219.86]
    13 166 ms 163 ms 161 ms 192.150.18.11
    14 166 ms 166 ms 165 ms www.adobe.com [192.150.18.117]
    Trace complete.
    and I can ping the site.
    so where now ?

  • I am able to load some pages from a particular website while other pages from the same site give the error "Firefox has detected that the server is redirecting the request for this address in a way that will never complete."

    I am able to access some directories on the website without any problems while I get the "Firefox has detected that the server is redirecting the request for this address in a way that will never complete." error for other directories of the same site.
    == URL of affected sites ==
    http://www.safelistgrande.com

    Suddenly from yesterday I am getting this error while trying to opening gmail

  • Google calendar is getting the error "Firefox has detected that the server is redirecting the request for this address in a way that will never complete." I have tried disabling cookies, clearing cookies and cache but that didn't work.

    Google calendar is getting the error "Firefox has detected that the server is redirecting the request for this address in a way that will never complete." I have tried disabling cookies, clearing cookies and cache but that didn't work.

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    * http://kb.mozillazine.org/The_page_is_not_redirecting_properly

  • Firefox has detected that the server is redirecting the request for this address in a way that will never complete. * This problem can sometimes be caused by disabling or refusing to accept cookies.

    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
    * This problem can sometimes be caused by disabling or refusing to accept
    cookies.

    In my experience this is most of the times a server issue of the website provider.
    Does this error occur on all Websites or just one specific Website?
    Does this Website load in Internet Explorer (or any other Browser?)?

  • Load the document in Firefox (click gmail "Documents") error: The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    load document in Firefox (clicking gmail "Documents", error: "The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    * http://kb.mozillazine.org/The_page_is_not_redirecting_properly

  • I can't access Facebook. I keep getting the "Firefox has detected that the server is redirecting the request for this address in a way that will never complete". I have cleared cache, cookies, history, offline storage. Nothing has worked.

    can't access Facebook. I keep getting the "Firefox has detected that the server is redirecting the request for this address in a way that will never complete". I have cleared cache, cookies, history, offline storage. Nothing has worked.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Firefox has detected that the server is redirecting the request for this address in a way that will never complete. *This problem can sometimes be caused by disabling or refusing to accept cookies. I followed the instructions for "redirection" issues.

    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
    * This problem can sometimes be caused by disabling or refusing to accept
    cookies.

    In my experience this is most of the times a server issue of the website provider.
    Does this error occur on all Websites or just one specific Website?
    Does this Website load in Internet Explorer (or any other Browser?)?

  • IBase When Creating a Request for Change in Solution Manager 7.1

    Hello all,
    We recenlty upgraded our sandbox system to Solution Manager 7.1 SP3 and are currently investigating the new ChaRM functionality with the new CRM UI. Our company had configured ChaRM back in 2007 and has been working very well since the initial delivery.
    While I was following the Request for [Change process simulation from RKT|https://websmp208.sap-ag.de/~sapidb/011000358700000478022011E/index.htm] on our sandbox system, I had noticed that the iBase and Component that we have  created in transaction IB52 prior to the upgrade were not showing in our search when we were defining the Change Request Scope section. In the documentation that I have read leading up to the upgrade, there have been no mention of the iBase/Component data becoming invalid post-upgrade nor have I found a conversion process.  I have done a search here on SDN and on SAP Notes to see why the iBase and Components were not showing up.
    Has anybody encountered this issue since the upgrade to 7.1 or is there something I need to do in IB52 in order for the iBase/Component in the new CRM GUI?
    Your assistance in this matter would be greatly appreciated.

    Hi,
    yes in 7.0 it worked for me too, that is because in 7.0 ChaRM searched for projects based on the IBase you selected.
    If there were more than one project where this system is involved you got a pop up where to chose your project.
    In 7.1 you chose the project directly, instead of let the system search for you.
    And depending on what productive-systems are in this project you get your Ibase list.
    If you don't select a project at all you will still get a list of all Ibases in your system.
    Iif you ask the SAP, they will allways tell you that you have to have a productive system in your project, at least as you pointed out with a virtual system.
    I did not read i t though and therfore ca nnot provide any sources.
    This is all based on my experiences.
    Best Regards
    Daniel
    Edited by: Daniel Titze on Nov 23, 2011 6:16 PM

  • Duplicate Hardware Key when tried to request for new license key

    Dear Experts,
    Our SAP ECC6 license key is going expire in these few days.  Therefore, I tried to request for new license key with the same Hardware key at SAP Support Portal, but it showed "Duplicate Hardware Key".
    Should I wait for the current one to expire before I could request for new one?
    Regards,
    Abraham

    Hi Nick,
    It's not a temporary license. 
    It just when I tried to get a new license key 1 week ago, the installation number we had was just licensed for MaxDB as database server, therefore, it only gave 2 weeks validity of license key. 
    Now, we have changed our contract licensed to MS-SQL server.
    Therefore, I need to get the new license key based on MS-SQL server.  Since, I didn't do any reformating on the server, thus, the hardware key is still the same when I tried to get the new license key.
    What should I do?
    Regards,
    Abraham

  • I redeem my accound $15 via Gift Card,shows on my ID BUT when I purchase request for my pastword and shows its not there,what's going on?

    I just purchase a gift card for my iTunes account. Follow the instruction and place the code to redeem my account. On iTUnes Store Home it shows $15.00 has been credited to my account but when I got to purchase its not there and request for my credit card infomation. Yet when I check the account infomation its in my name but the $15.00 gift card isn't present in my account. What happen to my money?

    Forget it I fixed myself

Maybe you are looking for

  • Issue in Updating Content Item . . .

    Hi, When i'm trying to update the content item, i'm getting following error. Unable to execute service UPDATE_DOCINFO_BYFORM and function populateMissingDocumentValues. (System Error: The service method 'populateMissingDocumentValues' is not defined.

  • How to find which authentication used to site collection and site using powershell

    Hi, How to find  how-many web app, sitecollection, site used Windows authentication,claim authentication and classic, secure store authention , adfs authentication using powershell code in sharepoint 2013. If sites are used adfs authentication how to

  • Where can I find Deskfinder for my desktop?

    I downloaded Desk Finder form the Blackberry site, and it says I also need to download http://www.shapeservices.com/freedownload/BB/DeskFinderForBlackBerry.exe and install it on my desktop.  When I try, it tells me that's an invalid web page.  So I g

  • Exchange Mail Re-Sync Issue

    One of our users out in the Far East is having an issue with this ipad where everytime he changes to a new WiFi network the Exchange mailbox reloads and re-syncs? I've seen this happen once on my iPad here in the UK but the issue is happening all the

  • How Does SDQ Universal Connector Works for Cleansing?

    Hi All, I have a question about the Siebel Data Quality Universal Connector. From the Siebel Bookshelf: In real-time mode, data cleansing begins when a user saves a newly created or modified record. When the record is committed to the Siebel database