ActionForward forwardError = mapping.findForward("testList");
StringBuffer bf = new StringBuffer(forwardError.getPath());
bf.append("?id=id");//参数
return new ActionForward(bf.toString(),true);
也支持 redirect="true"
StringBuffer bf = new StringBuffer(forwardError.getPath());
bf.append("?id=id");//参数
return new ActionForward(bf.toString(),true);
也支持 redirect="true"
本文介绍了一个构造ActionForward实例的方法,通过拼接路径和参数来创建一个新的ActionForward对象,并支持重定向。
343

被折叠的 条评论
为什么被折叠?



