"Grewal, Gary" wrote:

>
>
> I think HttpServletRequest inherits getRequestDispatcher(..) from
> ServletRequest class and does implement it. You can also get the
> RequestDispatcher object from ServletContext
>
> ===
> Gary Grewal
> [...]

Hi :-)   yes, I did a test with jakarta-tomcat-4.0-b3(standalone,
JDK1.3, winnt40):
* both the following can work:
  - getServletContext().getRequestDispatcher(...).forward(request,
response)
  - request.getRequestDispatcher(...).forward(request, response)

* both the following is the same one(has the same hashCode)
  - rd0=getServletContext().getRequestDispatcher(...)
  - rd1=request.getRequestDispatcher(...)

  rd0.hashCode() is same with rd1.hashCode()

Bo
Apr.05, 2001



Reply via email to