logic:forward标签跳转问题

来源:互联网 发布:软件开发程序文件 编辑:程序博客网 时间:2024/05/10 03:19

在使用logic:forward标签的时候常常会遇到跳转的页面是空白页 


首先应该检查logic:forward中的name和在struts.config配置的forward是否一一对应 跳转的path有无错误


其次 也是最主要的 检查action类的继承是否为dispatchAction

public class OrderAction extends DispatchAction

还有在struts-config的action配置中是否将action的class修改为

type="org.springframework.web.struts.DelegatingActionProxy"


大部分forward跳转为空白页的原因都是由于action的类集成错误导致


在创建action的时候多多注意 

原创粉丝点击