StrutsTilesLocaleResolver Cannot obtain HttpServletRequest

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:

The error was not present to the entire application, but to some of the jsp pages. I traced to a code similar with:

All you have to do in order to get rid of this error is to replace request with requestScope.

Spread the love

Leave a Reply