This discussion is archived
3 Replies Latest reply: Feb 19, 2013 2:47 AM by Frank Nimphius RSS

how to send parameter from Bean to jsp page in request

user611775 Newbie
Currently Being Moderated
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.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points