如果你的xxxx是动态的,在xml中应该不可以但是在类里用
response.sendredirect("/admin.do?id="+xxx);
return null;
实现可以。
response.sendredirect("/admin.do?id="+xxx);
return null;
实现可以。
解决方案 »
- github报错Permission denied (publickey),求帮助
- win7下用runtime.getRuntime().exec()调用cmd命令ping的问题
- j2sdkee 和 j2sdk 中j2ee报错,而j2sdk不报错
- 哪个是ibatis的开发包呀
- JBOSS 局域网不能访问,本机也无法通过局域网IP访问,只能用 localhost 或 127.0.0.1
- struts2.0 和 webwork 区别是什么?
- 本地tomcat下面部署一个程序,spring+hibernate+struct程序,tomcat启动报错
- 问一个actionform的reset方法的问题^O^
- 请高手讲讲 mvc
- Window 2000Server 环境下配置了TOMCAT的环境变量为什么样还是不行?
- 高分请教spring+struts+hibernate中出现的404错误
- 请问下structs的基本问题
public ActionForward batchRePubTradeinfo(ActionMapping mapping,
ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
String tradeinfoId = request.getParameter("tradeinfoId");
String[] ids = tradeinfoId.split(",");
for (String id : ids) {
Tradeinfo o = entityService.get(Integer.valueOf(id));
o.setPublishdate(DateUtils.getCurrentDate());
entityService.update(o);
}
HttpSession session = request.getSession();
ActionForward forward = new ActionForward("/assistant/getAllTradeinfo.htm?cpage="+session.getAttribute ("currPage"));
return (forward); }