摘要: 方法一:直接采用绝对路径(不推荐)在JSP页面端,获得本项目的绝对地址(如果你的项目叫MyApp,那么获得到的地址就是http://localhost:8080/MyApp/):代码如下:<!--**************方法一*****************--><%@pagelanguage="java"pageEncoding="GBK"contentType="text/html;charset=gbk"isELIgnored="false"%><%Stringpath=r 阅读全文
posted @ 2013-06-20 17:20 若 ♂ 只如初见 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 这是一个Struts2.1.8.1应用,代码如下首先是web.xml文件view plaincopy to clipboardprint?01.02.06. 07. struts208. org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter09. 10. 11. struts212. /*13. 14. 15. methodFilter.jsp16. 17.struts2org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilters 阅读全文
posted @ 2013-06-20 10:47 若 ♂ 只如初见 阅读(468) 评论(0) 推荐(0) 编辑