Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page doesn't reload after redirect in IE

Status
Not open for further replies.

SuperMoonster

Programmer
Aug 11, 2005
59
BR
Hello everyone,

I use struts and I have an action that redirects to the same page where it came from. Here it goes:
Code:
        <action
                path="/DelItevenPedidoList"
                type="auge.action.DelItevenPedidoListAction"
                name="addDelUpdItevenForm" 
                scope="session" 
                parameter="action"
                validate="false"
                input="/pages/pedido/carrinho.jsp"> 
                <forward name="success"  path="/pages/pedido/carrinho.jsp/>          
                <forward name="error"  path="/Error.do"/>          
                <forward name="naoLogado"  path="/NaoLogado.do"/>          
        </action>
Some more info on how I call my action in my jsp:
Code:
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Meu carrinho de compras</title>
       
        <html:base/>
 
        <script language="JavaScript">
            function removeLista(param) {
                        document.addDelUpdItevenForm.action="/GestaoDePedidos/DelItevenPedidoList.do?ordem="+param;
                        document.addDelUpdItevenForm.submit();
                   }
        </script>                        
        
     </head>
    <body onunload="window.parent.open('/GestaoDePedidos/pages/blank.jsp','downFrame')">
 
    <div align="right"><font color="#E18339" face="Arial">Meu carrinho de compras</font></div>
    <hr align="right" width="97%"> 
 
    <span style="font-family:Arial;font-size:12px;color:#0C6EAB">
    <br>
 
   </div>
   <html:errors/> 
   <div align="right">
   <br>
   <table width="97%">
   <tr class="cabecalhoTable">
      <td align="center"><b>  Produto  </b></td> 
      <td align="center"><b>  Cor  </b></td>	
      <td align="center"><b>  Tamanho  </b></td>	
      <td align="center"><b>  Quantidade  </b></td>	
      <td align="center"><b>  Valor  </b></td>	
      <td align="center"><b>  Remover  </b></td>	
   </tr>
   <html:form action="/DelItevenPedidoList" method="post">  
   <c:forEach var="element" items="${sessionScope.itevenList}">
   <tr class="corpoTable">
      <td align="left">  ${element.produto.descricao}  </td>
      <td align="left">  ${element.cor.nome}  </td>
      <td align="center">  ${element.tamanho}  </td>      
      <td align="center">  ${element.qtde}  </td>            
      <td align="center">  <fmt:formatNumber value="${element.qtde * element.baseCalculo}" type="currency"/>  </td>
      <td align="center">  <a href="javascript:void(0);" onclick="javascript:removeLista(${element.ordem})">Remover</a>  </td>      
   </tr>
   </c:forEach>   
   </html:form>
   </table>
   <br>
   <c:if test='${sessionScope.subtotal != null}'>    
    <table class="tableDestaque" width="97%" align="right">
        <tr><td width="80%" align="left">Subtotal</td><td align="right"><fmt:formatNumber value="${sessionScope.subtotal}" type="currency"/></td></tr>
    </table>
   </c:if>
   
   </div>
   </body>
</html>

In Firefox, it works just fine. In IE it doesn't. The action executes correctly but the page is not reloaded. If I click on it and choose "Reload" on the pop up menu, I'll see the changes made. But I wish it would reload by itself. Someone would know how?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top