Later if you want, you can set parameters in request scope, which will be accessed in other included/forwarded servlet/JSP while using RequestDispatcher mechanism.
Be careful here: there is
no ServletRequest.setParameter() or HttpServletRequest.setParameter() method,
nor is there a RequestDispatcher.addParameter() of RequestDispatcher.setParameter() method.
What you are describing is a mechanism in a
JSP where you can use the <jsp:param> in following tag:
These additional parameters are added to the request, but only for the duration of the include or forward.
Regards,
Frits