摘要: title: 转发和重定向 tags: 转发,重定向 grammar_cjkRuby: true 转发,走内部途径,浏览器的地址不变 context.getRequestDispatcher("路径").forward(request,response); request.getRequestDis 阅读全文
posted @ 2016-06-09 23:31 仁波切 阅读(137) 评论(0) 推荐(0) 编辑
摘要: title: xml解析中的sax解析 tags: grammar_cjkRuby: true SAXPasser 类: parser(File file, DefaultHandler handler):该方法使用sax解析方式去解析xml文档 DefaultHandler类:重写该类中的一些方法 阅读全文
posted @ 2016-06-09 00:43 仁波切 阅读(320) 评论(0) 推荐(0) 编辑
摘要: title: xml的解析 tags: grammar_cjkRuby: true 解析xml有三种方法 1.原生的dom解析,这个方法不常用。 2.dom4j开源库,还可以加上jaxen 1.1的jar包,适合xPath解析表达式。能读能写 3.sax解析,这个适合大体积的文件,缺点是只能解析,而 阅读全文
posted @ 2016-06-09 00:29 仁波切 阅读(1794) 评论(1) 推荐(0) 编辑