日期:2014-05-20  浏览次数:20666 次

struts2关于ActionContext.getContext.get("request")问题
1·ActionContext.getContext().get("request")我们可以得到一张Map。
那么张Map里面的数据是否跟HttpServletRequest数据一样呢?
如果一样,那么我怎么通过Map得到contextPath呢?

2·我经过实验,往Map里面put一个值,然后用HttpServletRequest是可以取到的,那么其实Map跟HttpServletRequest其实是指向同
一个对象。不知道我这个结论对不对。
------解决方案--------------------
自己回,结贴