摘要: 我们知道:HttpServletRequest对象可以获取许多有用的信息,但如果你不去细究,到用的时候你就会很纠结,现在总结于下。//获取请求的action的URL地址StringBuffer requestURL =ServletActionContext.getRequest().getRequestURL();System.out.println("requestURL-------->>" + requestURL);//结果: http://localhost:8080/weatherweb2.0/pages/theme/theme_add.actio 阅读全文
posted @ 2013-04-11 14:42 天地一孤鸿 阅读(376) 评论(0) 推荐(0) 编辑