首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

struts错误处理

2012-08-25 
struts异常处理struts.xml配置error.jsp示例  import com.opensymphony.xwork2.ActionSupport  @Suppress

struts异常处理
struts.xml配置



error.jsp


示例
  import com.opensymphony.xwork2.ActionSupport;  @SuppressWarnings("serial")  public class Test extends ActionSupport {  @Override  public String execute() throws Exception {  // TODO 自动生成方法存根  //产生一个除数为0的异常  int i = 1/0;  return SUCCESS;  }  }

热点排行