摘要:
java1234官网在sstruts2里面配置自己的异常处理1 2 /error.jsp在service里面捕捉到异常后往外抛,如 1 public List list()throws SQLException{ 2 Connection conn = DB.createConn(); 3 String sql = "select * from category"; 4 PreparedStatement ps = DB.prepare(conn, sql); 5 List categories = new... 阅读全文
摘要:
java1234官网!!!之前视频中讲过,忘了。刚在这里看到http://blog.163.com/xusy_0415/blog/static/21796705201112453025262/看到了解决方法,用了下,可以。具体步骤如下:window – preferences – 搜索 catalog – User Specified Entries - add;location: 对应的dtd文件,位于struts-core包中,解压开,指定相应位置,如:D:\share\0750_Struts2.1.6\soft\struts-2.3.15.1\lib\struts2-core-2.2.1 阅读全文