code: public static String getCurrentPagePath(HttpServletRequest request) {
  		String dispatched = getDispatchedPage(request);
  		if(dispatched != null) {
  			if(logger.isLoggable(Level.FINE)) logger.log(
  				Level.FINE,
  				"request={0}, dispatched={1}",
  				new Object[] {
  					request,
  					dispatched
  				}
  			);
  			return dispatched;
  		} else {
  			String servletPath = request.getServletPath();
  			if(logger.isLoggable(Level.FINE)) logger.log(
  				Level.FINE,
  				"request={0}. servletPath={1}",
  				new Object[] {
  					request,
  					servletPath
  				}
  			);
  			return servletPath;
  		}
  	}
docs: Gets the current page path, including any effects from include/forward.
  This will be the path of the current page on forward or include.
  Assumes all forward/include done with ao taglib.
  This may be used as a substitute for HttpServletRequest.getServletPath() when the current page is needed instead of the originally requested servlet.