I have a JSF/JSP page, a managed bean, and a separate file/class that extends HttpServlet with the doPost method.
I have a separate test program that sends a xml object to the doPost method via a HttpURLConnection.
What is wanted:
- Start the JSP page with temporary data (works).
- At a later time, send a new xml object to the
doPostmethod (works - I get the data in thedoPostmethod). - Display the new data in the JSP (does not work).
Notes:
- When the data comes in it hits the
doPostmethod correctly. - The
doPostmethod does arequest.getRequestDispatcher("/faces/xxx.jsp").forward(request, response);(The request is correctly loaded with the data). - The initial method in the JSP managed bean is hit correctly.
- I cannot use any Javascript in this. EL is questionable.
Problem: I have not found a way (probably really obvious) to get the request object to the JSP managed bean from the servlet.
The question: How does the JSP retrieve the request object and pass the request object to the managed bean? It there an end to end example anywhere? - have not found one.