struts 带参数的跳转

ActionForward forwardError = mapping.findForward("testList");
            StringBuffer bf = new StringBuffer(forwardError.getPath());
            bf.append("?id=id");//参数
            return new ActionForward(bf.toString(),true);



也支持 redirect="true"

你可能感兴趣的:(struts)