Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tiles 2 And No mapping found for HTTP request with URI - Spring-MVC

I want to use Spring-Tiles intergration. Here you can see how my app looks like.

So my question is: why Spring-MVC dispatcher Servlet can not resolve my Target page ???

like image 830
Arthur Ronald Avatar asked Dec 04 '25 17:12

Arthur Ronald


1 Answers

The problem is that you use <url-pattern>/*</url-pattern> in servlet mapping, so all requests are processed by DispatcherServlet, including request to *.jsp tiles. The most versatile way to solve it (but to keep restful urls without prefixes) is to use a UrlRewriteFilter.

like image 118
axtavt Avatar answered Dec 06 '25 23:12

axtavt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!