Dear all,
I have some inquiry about the request object, I'm using MVC implementation recommended by IBM, where
JSP submits to a controller
servlet which redirect the request & response over appropriate class handlers, My question is:
- The nature of the request object, as I don't figure its behaviour, let me be more clear about what I mean:
JSP submits to a controller servlet which figure which handler the JSP requires & passes the request & response to this handler which take what it needs of parameter passed to it using getParameter, or getParameterValues methods and do some logic and passes the result to a JSP after adding the result in the
SAME request object using setAttribute method, and then uses getServletContext().getRequestDispatcher( p_szPage ).forward( p_Request, p_Response ); to submit to a second JSP.
I want to know how the request object differentiate between parameters passed to it from the first JSP & the attributes he is sending to the second JSP.