/** This method sets the current location for the nav map */ protected void setNavMapLocation( HttpServletRequest request, ActionMapping mapping, String currLoc) throws Exception { Map<String, String> params = new HashMap<String, String>(); // sets the returnPath to match the mode we're in. String mode = request.getParameter(ParamConstants.MODE_PARAM); params.put(ParamConstants.MODE_PARAM, mode); String newUrl = ActionUtils.changeUrl(currLoc, params); request.setAttribute(AttrConstants.CURR_RES_LOCATION_MODE, mode); request.setAttribute(AttrConstants.CURR_RES_LOCATION_TYPE, currLoc); request.setAttribute(AttrConstants.CURR_RES_LOCATION_TAG, newUrl); }