struts2 的 Action 实现了ServletRequestAware接口,但是获取不到HttpServletRequest对象实例
2条回答 默认 最新
- qwe_rt 2010-05-14 17:57关注
需要在struts.xml配置文件中对相应的action加上拦截器引用:[code="xml"][/code]
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
struts2 的 Action 实现了ServletRequestAware接口,但是获取不到HttpServletRequest对象实例
需要在struts.xml配置文件中对相应的action加上拦截器引用:[code="xml"][/code]