if (contextPath != null && !action.contains(contextPath + "/")) {
if (contextPath != null && !"/".equals(contextPath) && !action.contains(contextPath + "/")) {
    public void setAction(String action) {        // Use the action resolver to figure out what the appropriate URL binding if for        // this path and use that if there is one, otherwise just use the action passed in        String binding = StripesFilter.getConfiguration().getActionResolver().getUrlBindingFromPath(action);        if (binding != null) {            this.actionWithoutContext = binding;        }        else {            this.actionWithoutContext = action;        }        if (action.startsWith("/")) {            HttpServletRequest request = (HttpServletRequest) getPageContext().getRequest();            String contextPath = request.getContextPath();            if (contextPath != null && !action.contains(contextPath + "/")) {                action = contextPath + action;            }        }        HttpServletResponse response = (HttpServletResponse) getPageContext().getResponse();        set("action", response.encodeURL(action));    }