// Added in Servlet 2.5 public String getContextPath() { try { Method getContextPathMethod = servletContext.getClass().getMethod("getContextPath", (Class<?>[]) null); // $NON-NLS-1$ return (String) getContextPathMethod.invoke(servletContext, (Object[]) null) + proxyContext.getServletPath(); } catch (Exception e) { // ignore } return null; }
public RequestDispatcher getRequestDispatcher(String arg0) { return new RequestDispatcherAdaptor( servletContext.getRequestDispatcher(proxyContext.getServletPath() + arg0)); }