3 Replies Latest reply on Feb 19, 2013 10:47 AM by Frank Nimphius-Oracle

    how to send parameter from Bean to jsp page in request

    user611775
      I've oracle adf fusion web application version 11.1.1.6
      And i've bean in request scope
      From this bean I call a jsp page to call PiReports
                      HttpServletRequest myReq = (HttpServletRequest)context.getExternalContext().getRequest();              
                      myReq.setAttribute("myURL", url);
      
                      String jspPageURL= server+""+link;
                      context.getExternalContext().redirect(jspPageURL);
      <f:view>
        <af:document id="d1">    
          <form id="testForm" method="POST" action="<%=request.getAttribute("myURL")%>">
      
            <input type="text" name="test" value="<%=request.getAttribute("myURL")%>
            <input type="text" name="nquser" value="<%=session.getAttribute("username")%>"/>   
            <input type="text" name="NQPassword" value="<%=session.getAttribute("password")%>"/>
      
          </form>
          
          <script language="javascript">
          
          document.getElementById("testForm").submit();
          
          </script>
        </af:document>
      </f:view>
      the jsp page take opens and take the parameters from the bean and is redirected to a new page.
      When I send myURL in sessionScope it is sent with no problem but in request scope it is not shown on the page.