要跳到这个actiondepartment_show.action?department.id=1有个要求是必须客户端跳转,请问这个result应该怎么写呢?
解决方案 »
- 问个java导出word的问题
- jqgrid数据转换的问题
- 帮忙看一下struts2配置的问题
- struts2+hibernate3.2+spring2.5
- 请问论坛有朋友做过流程可视化的开发项目吗
- struts+hibernate读取数据问题(在线等待……)
- servlet怎么没了啊
- jsp中使用bean的问题?
- 今天各位大哥帮帮忙,在线等,看看程序有没有错,(STRUTS的)
- EJB3.0及web工程从原来的JBOSS4.2升级到Jboss5.1,default/conf/bootstrap.xml启动失败
- 求 有找工作经验的朋友来帮看下,我目前掌握的技术能找份JAVA程序员的工作吗。。
- 怎样学习juqery
String basePath = request.getScheme() + "://" + request.getServerName()
+ ":" + request.getServerPort() + path + "/";
StringBuffer sb = new StringBuffer();
this.response.setCharacterEncoding("UTF-8");
this.response.setContentType("text/html");
sb.append("<script language='javascript' type='text/javascript'>");
PrintWriter out = response.getWriter();
sb.append(" window.location.href='" + basePath + "department_show.action?department.id=1';");
sb.append("</script>");
out.print(sb.toString());
return null;这是在你的action中要跳转的action 这是在java代码中实现的, 配置文件:
<result name="action中return">department_show.actiondepartment.id=1</result>
一个action跳到另一个action 并且带参数?然后呢?