Due to the existing security vulnerabilities present in struts framework, I had migrated a struts application from 2.3.20 distribution to 2.5.13. I learned that for some jsp pages I got the following error:
1 |
ERROR StrutsTilesLocaleResolver Cannot obtain HttpServletRequest from [org.apache.tiles.request.jsp.JspRequest] |
The error was not present to the entire application, but to some of the jsp pages. I traced to a code similar with:
1 |
<%= request.getAttribute("someAttributeName") %> |
All you have to do in order to get rid of this error is to replace request with requestScope.