java 301 跳转

//301 跳转
            HttpServletResponse response = (HttpServletResponse) ((ViewCommandContext) getCommandContext()).getResponse();
            response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
            response.setHeader("Location","http://XXX.coms");  
            return;

你可能感兴趣的:(java 301 跳转)