关于execute()方法的一个问题 action中的execute方法是自动执行的,你可以在execute方法中用servletResponse.sendRedirect("another.jsp"); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response){ ActionForward actionForward = null; // Do something... actionForward = mapping.findForward("AnotherJsp"); return actionForward;}然后在struts-config.xml中添加转发连接 <action path = "/***" type = "***Action" > <forward name="AnotherJsp" path="/***.jsp" /> </action> fenghuangling(凤凰令) 顶,up 读数据库中数据,画出地图中两点间的路径 JAVA 遍历表单Iterator! hibernate三表连接,插入数据。求指教 谁帮我讲讲spring框架里的“事务传播行为”和“事务隔离级别”是什么意思? jfreechart画图问题请教 spring管理hibernate,事务配置的疑惑 struts+spring+hibernate 在hibernate执行的时候出现null错误 有关jbosscmp-jdbc.xml的问题,很简单 java 集合 JAJA程序有类似exe+dll的机制么? 菜鸟问题啊。。。。这两个form的区别啊(新) 请教移动书店的数据结构问题
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
{
ActionForward actionForward = null; // Do something... actionForward = mapping.findForward("AnotherJsp");
return actionForward;
}然后在struts-config.xml中添加转发连接 <action path = "/***"
type = "***Action"
>
<forward name="AnotherJsp" path="/***.jsp" />
</action>