Response.sendRedirect doesn't work with Internet Explorer

I do posts like advised here: http://www.theserverside.com/tt/articles/article.tss?l=RedirectAfterPost. GET-POST-REDIRECT-GET. Now I have a problem when do redirecting to the same page in Internet Explorer. It works good with Mozilla Firefox but not with Internet Explorer. When user click to "Enable"/"Disable" link and do submit, application makes changes on the database. Changes occurs, but redirect to the page doesn't work. When I refresh page, I see that, the changes was occurred. When I use Mozilla Firefox with same JSP, there is no need to refresh page, because, redirect works. When I change redirect URL to other, for example http://www.google.com/, redirect doesn,t work in Internet Explorer too.
Code of users.jsp JSP:
<%@ page import="az.ub.ccs.beans.User" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page errorPage="error.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:useBean id="bc" scope="page" class="az.ub.ccs.beans.BreadCrumb" />
<jsp:useBean id="user" scope="request" class="az.ub.ccs.beans.User"/>
<c:if test="${sessionScope.active == null}"><c:redirect url="login.jsp" /></c:if>
<%
   if(request.getParameter("stateAction") != null)
      int state = (request.getParameter("stateAction").equals("enable")) ? 0 : 1;
      User.changeUserState(Integer.parseInt(request.getParameter("itemID")), state);
      response.sendRedirect("users.jsp");
      //response.setStatus(HttpServletResponse.SC_SEE_OTHER);
      //response.setHeader("Location", "users.jsp");
   bc.add("Users");
%>
<jsp:include page="top.jsp" flush="true">
   <jsp:param name="breadCrumbString" value="${bc.breadCrumbsAsHTML}"/>
   <jsp:param name="pageTitle" value="Users"/>
</jsp:include>
<tr>
   <td>
      <table border="1" width="100%">
         <tr class="tableHeader">
            <td>ID</td>
            <td>&#1048;&#1084;&#1103; &#1087;&#1086;&#1083;&#1100;&#1079;&#1086;&#1074;&#1072;&#1090;&#1077;&#1083;&#1103;</td>
            <td>&#1051;&#1086;&#1075;&#1080;&#1085;</td>
            <td>&#1053;&#1086;&#1084;&#1077;&#1088; &#1075;&#1088;&#1091;&#1087;&#1087;&#1099;</td>
            <td>&#1053;&#1072;&#1079;&#1074;&#1072;&#1085;&#1080;&#1077; &#1075;&#1088;&#1091;&#1087;&#1087;&#1099;</td>
            <td>Email</td>
            <td>&#1053;&#1086;&#1084;&#1077;&#1088;</td>
            <td colspan="2">&#1044;&#1077;&#1081;&#1089;&#1090;&#1074;&#1080;&#1077;</td>
         </tr>
         <c:forEach items="${user.userList}" var="user">
         <tr>
            <td align="right">"${user.userID}"</td>
            <td><c:out value="${user.userName}"/></td>
         </c:forEach>
         <tr>
            <td colspan="7"> </td>
            <td colspan="2"><a href="addEditUser.jsp">[Add new]</a></td>
         </tr>
      </table>
      <form name="stateForm" method="post" action="users.jsp">
         <input type="hidden" name="itemID"/>
         <input type="hidden" name="stateAction"/>
      </form>
   </td>
</tr>
<jsp:include page="bottom.jsp" flush="true"/>

I use HttpWatch to see request and response details. Link to the report file of HttpWatch http://tasadar8.googlepages.com/CCSHttpWatch.rar

Similar Messages

  • FingerPrint Utility - OmniPass - Doesn't work with Internet Explorer 7

    OmniPass website password saving/autologin for Internet Explorer 7 Beta 2 doesn't work correctly (it seems microsoft has changed the way their forms work for username and password submission etc)
    OmniPass loaded slow in the earlier version it actually took about 30seconds or so for the FingerPrint dialogue to popup at logon, once i upgraded to v3.50.43 it loads in 10 seconds now, however when i first bought my notebook it use to load immediately, now that i've installed programs it's slower (not many programs).
    Now i have done full registry cleans, spyware and virus scans, full cleanups, defrags etc...
    I have tried editing the registry key for the OmniPass service - all with out success. It still hasn't gotten any faster.
    Anyone got any ideas?

    Hi
    The fact is that the Internet Explorer 7 is not official on the market and Toshiba doesnt support any Beta versions. In this case if you use any test versions on your notebook so you can do it only at your own risk!
    Im sure that if you use the IE6 and other applications from the Toshiba recovery CD, all should works properly.

  • Response.sendRedirect doesn't work with IAS 10g

    Hello,
    I'm moving my application to JDK 1.4 and IAS 10g.
    It's alright, but I noticed one problem.
    For long operation I created my way to display my "Working in progress..." page.
    I create an HTML file into a cache folder and I redirect to that file that reload itself every five seconds.
    Once the operation is terminated it change a session variable that is loaded by the HTML page and it ends the "Working in progress..." message.
    The problem is that in IAS 10g it doesn't redirect to the HTML file immediately, it seems that "wait" the operation is almost finished: il redirect to the HTML file, and after 5 seconds it loads the end message of the operation.
    This is the part of the code:
    [WRITE FILE IN c:\application\tools\template\cache as tempxyz.html]
    String urlToLoad = "/myApp/tools/template/cache/tempxyz.html";
    response.sendRedirect(urlToLoad);
    [OPERATIONS]
    [CHANGE SESSION VALUE]
    -END-
    The "response.sendRedirect(urlToLoad);" instruction pass without errors.
    I hope I explained my situation.
    Thanks in advance for any suggestions,
    EP

    Thanks Qiang,
    Ive done exactly as youve said and it must be a rewriting problem as you suggested. Here is the header from accessing the servlet on the Linux host machine (IP 192.168.5.121 called 'BEAST')
    --10:12:27-- http://192.168.5.121:7780/webapp/test
    => `test'
    Connecting to 192.168.5.121:7780... connected.
    HTTP request sent, awaiting response...
    1 HTTP/1.1 302 Moved Temporarily
    2 Date: Wed, 11 May 2005 09:12:27 GMT
    3 Server: Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server
    4 Content-Length: 183
    5 Cache-Control: private
    6 Location: http://BEAST:7779/webapp/testJ.jsp
    7 Keep-Alive: timeout=15, max=100
    8 Connection: Keep-Alive
    9 Content-Type: application/octet-stream
    Location: http://BEAST:7779/webapp/testJ.jsp [following]
    --10:12:27-- http://beast:7779/webapp/testJ.jsp
    => `testJ.jsp.3'
    Resolving beast... done.
    Connecting to beast[127.0.0.1]:7779... connected.
    That worked fine. Here is the header on my windows machine on the network ( IP 192.168.5.120) :
    HTTP/1.1 302 Moved Temporarily
    Date: Wed, 11 May 2005 09:03:21 GMT
    Server: Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server
    Content-Length: 183
    Cache-Control: private
    Location: http://BEAST:7779/webapp/testJ.jsp
    Keep-Alive: timeout=15, max=100
    Connection: Keep-Alive
    Content-Type: application/octet-stream
    I think the problem must be that the response is telling it to redirect to BEAST (which is the name of the server) but the windows box cant resolve the name. Must be why i get the page cannot be displayed.
    The code in the servlet 'test' to redirect is just:
    response.sendRedirect("testJ.jsp");
    Any ideas would be much appreciated on how I can fix this other than setting up a local DNS server?!
    Cheers,
    Rob.

  • New flash player 11 update doesn't work with internet explorer 8

    I have Windows 7 and IE 8. This is a home desktop computer.
    When the latest update of FlashPlayer 11.5.502.146 was automatically installed on Jan 9, IE8 stopped working. I can navigate to a site, but then it just freezes. I can not click any toolbar or other buttons or links--I can not even close IE--I have to use task manager. If I disable Flashplayer, IE works fine, but then of course no content can be displayed. If I go to a site and then enable Flashplayer, I can't click on anything again, so that doesn't work. HELP. Does the newest update not work with IE8?

    I have a similar problem. I've Win XP SP3 with IE 8. For last few months I've noticed that Flash Player is not able to play flash audio/video on a webpage i.e., upon visiting a page the flash player starts loading but it does not finish - a circle keeps rotating - player does not manage to display 'Play' button. I've uninstalled and reinstalled Flash Player 11.5.502.146. Also, installed Flash Player 11.6.602.161 from above link. But, with same result.
    Same behaviour is repeated in FireFox 18.0.1 with Flash Player 11.5.502.146. It seems that something else is not allowing flash player to play. I've latest Java 7 Upd 13, ZoneAlarm 11 and Avast 7.0.1474.
    (Note: I've another PC with Win XP SP3, IE 8 and FireFox 18.0.1 and Flash Player 11.5.502.146 works well. It has Java 7 Upd 13. It has ZoneAlarm 11 and Windows Defender AV)
    Can anyone help?

  • Why does my Web Handler work with Internet Explorer, but not with Firefox

    I am trying to develop a web page that uses the Simile Timeline (http://code.google.com/p/simile-widgets/wiki/Timeline) with data from SQL Server.
    In initial testing of my timeline I tested it with Example.xml, a static XML file in the correct format to be event data. I wrote the following in the appropriate place within mytimeline's Javascript: -
    var WebHandler = "Example.xml"
    tl.loadXML(WebHandler, function (xml, url) { eventSourceFamily.loadXML(xml, url) });
    This worked fine with both Firefox and Internet Explorer. I then changed the assignment to
    var WebHandler = "GDBTimeline.ashx?Type=Family&Userid=" + getControlValue("input", "hdnUser");
    so that invoked a web handler that could look up the SQL database and return the XML that I wanted, and wrote this web handler.
    This works perfectly with Internet Explorer, but with FireFox the timeline band is blank. Yet when I examine the http traffic with Fiddler2 (http://www.fiddler2.com/fiddler2/) I see that with either browser there is a response from URL
    /GDB_pages/GDBTimeline.ashx?Type=Family&Userid=robertb
    that returns the XML that it is supposed to.
    I have previously used web handlers with Firefox before, with no problems. The Fiddler results conclusively show that the web handler is invoked, and returns the appropriate XML, and this XML is identical to the XML from the static test with Example.xml.
    Where do I start looking for answers? I don't even know if this is a Simile problem, a Firefox problem, or an ASP.NET problem.
    Thank you, Robert.

    Problem solved. The issue: Content Type was not correct.
    Visual Studio creates the web handler with dummy code like this: -
    Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
    context.Response.ContentType = "text/plain"
    context.Response.Write("Hello World")
    End Sub
    I wrote a database query that set a string variable to the XML I wanted: -
    Public Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest
    Dim Outstring as string
    ' my logic to fill Outstring with XML
    context.Response.ContentType = "text/plain"
    context.Response.Write(Outstring)
    End Sub
    This works with Internet Explorer. However it's not strictly correct: to make it work with other browsers as well,
    context.Response.ContentType = "text/plain"
    should be
    context.Response.ContentType = "text/xml"
    It now works with IE, FF, and Chrome, and presumably all others.

  • I can not get the flash player plug in to work with Internet Explorer

    I can not get the flash player plug in to work with Internet Explorer

    Zoltan71 wrote:
    I just bought this computer. My Internet Explorer is version 11.0.1
    I have the box checked to Install new version automatically, but it has not done any upgrading.
    I can't get the computer to update anything as far as I can see.
    The flash plug in does work with the Crome browser but it will not work with Internet explorer.
    I looked in the manage add-ons and it says enabled.
    I also went into the safety tab and deselected
    Active X filtering.
    Restarted and still does not work.
    I need help.....
    Chrome uses a different and separate plug-in.
    There are things about IE you need to know, especially 11. Specifically:
    "User-Agent Strings"
    That doesn't mean a lot, I'm sure, but it's the root of your problems, and Flash Player has nothing to do with it.
    Microsoft "rewrote" the User-Agent Strings for the abomination they call their latest and greatest browser. User-Agent Strings are what websites use to identify the browser you're using and provide the proper content for it's browser engine, like ActiveX stuff, and Flash or HTML5 video. Thanks to the geniuses in Redmond, WA, the User-Agent Strings for IE11 (which has a Trident engine), ID it as either "Gecko" (Firefox) or "Webkit" (Chrome). Problem is: when the site the directs to the content for one of these two engines, the Trident engine in IE can't intepret it and the site then sees IE as an "unidentified" browser.
    The problem with an unidentified browser is that the plug-ins in that browser aren't recognized either, so even though you're up to date, it says you need the latest Flash Player when you use IE11. YouTube... has converted to HTML5 video so if it doesn't detect Flash Player, it can display HTML5 (MP4) video which requires no plug-in to play. Facebook can't do that, because HTML5 doesn't apply to games... only video.
    Microsoft has no plans to "fix" the mess they've created because they think it's a great idea to block you out of the websites you visit.
    They recommend using "Compatibility View" and pretending that you're using an older verison of IE... Problem with that is that it's seen limited success, and you have to enable it for EVERY page that has problems... individually.
    I'm not big on "pretending" so I recommend actually using another browser.
    Firefox (from Mozilla)
    Opera (from Opera)
    Safari (from Apple)
    Chrome (from Google)
    ANY of those will work where IE11 won't, with the Flash Player Plug-in (For all other browsers), and Chrome doesn't even need that because it has its own Flash Player plugin built in.

  • Muse CC 2014.1 slideshow--why doesn't work in Internet Explorer on a PC?

    I have created several slideshows on my Muse websites but the one I just did yesterday doesn't work on Internet Explorer. It works on all other browsers though. Any ideas why or perhaps a workaround?

    Well not really. Even if you did "convert" these images, iWeb would overwrite them again as soon as you published again. You see, iWeb converts to PNG anytime you let iWeb do anything to an image.
    The secret is to have your images "iWeb-ready" before dropping them into iWeb. That means using some other program to properly size your images and apply any effects to them (like shadows, rotation, reflections, frames, etc). It's a pain in the neck, but it works. This is a limitation of iWeb that we all have to work around for IE users.
    If it's any consolation to you, the next version of Internet Explorer comes with full PNG support and will bring the unwashed masses of PC users into a more modern era of browser technology (if the technology hasn't advanced even more by that time).

  • My Google search autocomplete me in Firefox does not work anymore. However, it still works with Internet Explorer. How can I fix this so Google gives me search suggestions again?

    My Google search autocomplete me in Firefox does not work anymore. However, it still works with Internet Explorer. How can I fix this so Google gives me search suggestions again?

    Solution update: Disabled XULRunner 1.9.1 extension from Add-ons > Extensions. Problem solved.

  • Working with internet explorer

    I know mac no longer supports internet explorer. I need to access applications from my place of employment at home that apparently only work with internet explorer.
    I can partially access the website using firefox, safari, netscape,and the latest internet explorer for macs (5.2), but can't do anything with it. The IT guy at my place of employment tried to help me configure the internet explorer, but says it's old & he couldn't do it. Am I out of luck?

    Just a question: is your work computer a PC? If it is, I recommend biting the bullet and signing up for "Go to My PC" if you haven't already. I assume if you're a Mac user you probably have broadband internet at home and at work. If you use GTMPC you can operate your PC right from your home Mac, and process your stuff from home, save it on your work PC, and you're good to go! It's only $19.95 a month for unlimited usage; $14.95 a month if you sign up and pay for a whole year. It works great - it basically uses your browser at home to extend your home keyboard to your work PC. Your work PC does all the work, not your Mac - but you get to watch. It's as much fun as PC computing can be!

  • AS3 image upload & encode - doesnt work with Internet explorer.

    So I was looking for a way our clients to upload their Logo
    into a flash application we are designing and I found
    -this-.
    However, I later found that it doesn't work in Internet Explorer,
    however does work in every other browser. Is there something in the
    AS3 code I am missing? :(

    This is a oracle maps bug. The workaround is to add the image as a separate marker foi.
    pointClicked = MVSdoGeometry.createPoint(mouseLocationX, mouseLocationY, 8307);
    pointClickedFOI = new MVFOI("ID:" + (FOICount++), pointClicked, "MY.STYLE.NAME");
    pointClickedFOI.setWidth(48);
    pointClickedFOI.setHeight(48);
    mapview.addFOI(pointClickedFOI);
    markerFOI = MVFOI.createMarkerFOI("ID:" + (FOICount++), pointClicked, "./pin.png");
    mapview.addFOI(markerFOI );

  • Response.TransmitFile not working with Internet Explorer 11

    My website works fine with FireFox, and it worked fine with Internet Explorer too up until a few weeks ago (at least).  Now, with Internet Explorer 11 (running on Windows 8 Pro 64 bit), when I click the button to download the file (a Word document),
    nothing happens.  In FireFox, a dialog is presented asking the user to save or open the file.
    What is going on???  I have been having nothing but problems with IE11.  Extremely poor performance all around.
    HELP!!!!
    Here is the C# code in question:
    Response.TransmitFile(filename_goes_here)
    Response.Flush();
    HttpContext.Current.ApplicationInstance.CompleteRequest();
    The three lines above are wrapped in a try/catch, and no exception is thrown.

    This is a web-related question. THose are best asked in the ASP.Net forum:
    http://forums.asp.net/
    Let's talk about MVVM: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b1a8bf14-4acd-4d77-9df8-bdb95b02dbe2 Please mark post as helpfull and answers respectively.

  • SharePoint Apps doesn't work in Internet Explorer

    SharePoint Apps Internet Explorer
    Hi all,
    we are development SharePoint-hosted app, we have a problem that works in all the browsers except Internet Explorer (sometimes). 
    The strang is that when you debug with Visual Studio or IE developer toolbar, the app if it works.
    I add the sites to the same security zone in Internet Explorer and all it says this article and doesn't work.
    http://msdn.microsoft.com/en-us/library/office/jj612823(v=office.15).aspx
    This is the code where I do the call:
    $(document).ready(function () {
    var call = getInfo();
    call.always(function (EmployeesInfo) {
    if (EmployeesInfo != "ERROR") {
    var t = JSON.parse(EmployeesInfo);
    $get("EmployeeInfoDiv").innerHTML = fillEmployeeInfo(t);
    function getInfo() {
    var def = new $.Deferred();
    var executor;
    var hostweburl;
    var remotedomain;
    remotedomain = "http://sharepointdev:8090/";
    hostweburl = decodeURIComponent(getQueryStringParameter("SPHostUrl"));
    executor = new SP.RequestExecutor(remotedomain);
    executor.iFrameSourceUrl = "CustomProxy.aspx?SPHostUrl=" + hostweburl;
    executor.executeAsync(
    url: remotedomain + "SimpleContent.aspx",
    method: "GET",
    headers: { "Accept": "text/plain" },
    success: successHandler,
    error: errorHandler
    function successHandler(data) {
    var EmployeesInfo = data.body;
    def.resolve(EmployeesInfo);
    function errorHandler(data, errorCode, errorMessage) {
    document.getElementById("TextData").innerText =
    "Could not complete cross-domain call: " + errorMessage;
    def.reject("ERROR");
    return def.promise();
    Anyone know it is because this issue? 
    Thanks and regards,
    rmves

    Hi rmves,
    According to your description, my understanding is that your SharePoint hosted app not work in Internet Explorer sometimes.
    I suggest you can try as followings:
    1. When you debug with Internet Explorer Developer Tools, you can check whether there is any error in the script.
    2. I suggest you can check the web request using Fiddler when the app work correctly. Then you can check if there is something wrong when the app not work in Internet Explorer.
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Cannot print due to error message--printer working with Internet Explorer--How do I correct?

    Last week printer worked fine with Firefox.
    This week a message comes back "an error occurred while printing".
    Printer works fine with Internet Explorer.

    To test how Firefox runs "uncustomized" on your system, could you do a two-minute experiment?
    '''Create a new Firefox profile'''
    A new profile will have your system-installed plugins (e.g., Flash) and extensions (e.g., security suite toolbars), but no themes, other extensions, or other customizations. It also should have completely fresh settings databases and a fresh cache folder.
    Exit Firefox and start up in the Profile Manager using Start > search box (or Run):
    firefox.exe -P
    Any time you want to switch profiles, exit Firefox and return to this dialog.
    You'll click the Create Profile button. I recommend using the default location suggested (i.e., just ignore the option to choose a different folder). Then start Firefox in the new profile you created.
    Can you print?
    When returning to the Profile Manager, you might be tempted to use the Delete Profile button. But... it's a bit too easy to accidentally delete your "real" profile, so I recommend resisting the temptation. If you do want to clean up later, I suggest making a backup of all your profiles first in case something were to go wrong.

  • IWeb Page Navigational Links not working with Internet Explorer 7

    I'm hoping someone can help me out here? My wife created her 1st website using iWeb. I am testing the sites functionality before we publish it. All the pages and links work fine on Firefox and Safari for windows. However, the page navigational links are not working on Internet Explorer 7. All I see is a dot to the left side of where the page links should be. When I start the site in IE7 I get an Active X script warning and I am asked if I want to allow the script to run; to which I reply yes. After I allow the Active X script the dot to the left side of where the page links should be disappears, but the links do not appear.
    Is there anyway to resolve this? Most of the members of her club have Windows based PCs and are using IE7.
    Message was edited by: cviz821

    Yes, Javascript is running on IE7 and other java script applets appear to be working with the exception of the Navbar script.
    It would be great if my wife's friends used a "real" browser, unfortunately 70% of the people on the web use IE7, so this is a real concern if we can't get this to work. I'v seen other iWeb site on IE7 that seem to function fine, so I'm not sure what the issue is here.
    Message was edited by: cviz821

Maybe you are looking for

  • Firefox closes "Save As" window on some web sites when downloading

    On some web sites, such as Scribd or PC World, Firefox will quickly force shut the "Save As" window when downloading. It happens so quickly that I barely have time to see the "Save As" window. The same web site on IE will not cause this to happen. I

  • JDeveloper business component browser is very slow

    Hi everyone, A view that runs very fast -- 2 seconds -- through SQL Developer takes an extremely long time -- several minutes -- when using the business component browser in JDeveloper. Any suggestions would be appreciated as I am a newbie with JDeve

  • Transportation of process chain

    Hi, I have transported Process chain from Development system to Quality system,but i cannot see my transported process chain in BWQ, i did't get any problems while transporting request from development to Quality, in STMS also succesfully imported.bu

  • HT4623 how can i get the numbers and keynote app to work on my imac?Help!

    I downloaded the numbers and keynote apps but how do i get them to open and work on my imac or ipad?

  • Resolution priority during SBS2008 to 2011 migration

    Hi Everybody We are halfway through migrating from SBS2008 to 2011 There are a number of issues in BPA on the destination server View installation issues on the destination server is reporting THE REQUIRED ACTIVE DIRECTORY STRUCTURE WAS NOT CREATED.