I got next problem with my application. I have to make my own 404 page and I'd like to write there "Page {requestedPage} not found" but I have no idea how to get this value.
I created Controller with RequestMapping
@RequestMapping("404")
public String handle404(Locale locale, Model model ,HttpServletResponse response, HttpServletRequest request){
...
}
and set this page in web.xml as 404 error page
<error-page>
<error-code>404</error-code>
<location>/404</location>
</error-page>
I found the same question on spring forum http://forum.springsource.org/showthread.php?87670-Knowing-the-requested-URL-during-a-404 but without answer
I looked for all HttpSerletRequest methods and fields but not found anything what can help.
Does anyone know how to do this?