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
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;
  <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")%>"/>

    <script language="javascript">
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.


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