*
The moose likes Spring and the fly likes Got Problems with Tuckey UrlRewriteFilter and Spring 3 Web MVC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Got Problems with Tuckey UrlRewriteFilter and Spring 3 Web MVC" Watch "Got Problems with Tuckey UrlRewriteFilter and Spring 3 Web MVC" New topic
Author

Got Problems with Tuckey UrlRewriteFilter and Spring 3 Web MVC

Benny Neugebauer
Greenhorn

Joined: Sep 19, 2010
Posts: 1
Hi, I have a Spring Web MVC application and I want to use RESTful URLs. Regrettably I haven't found any configuration that works for me with Tuckey's UrlRewriteFilter.

I'm using the "DefaultAnnotationHandlerMapping" and I added "urlrewritefilter.jsp" to my classpath and copied "urlrewrite.xml" into "/WEB-INF/".

I wan't to achieve that http://www.domain.com/abc will be redirected (invisible for the user) to http://www.domain.com/app/abc to catch it with my Controller and to let http://www.domain.com/css untouched.

My "web.xml" is configured this way:


My "urlrewrite.xml" is configured this way:


My AbcController.java for mapping http://www.domain.com/abc has such methods:



But I always receive "HTTP Status 404" when trying to access http://www.domain.com/ or http://www.domain.com/abc :-(

It would be very nice if somebody could help.

Greetings

Benny
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Got Problems with Tuckey UrlRewriteFilter and Spring 3 Web MVC
 
Similar Threads
htaccess and mod_rewrite issue
RichFaces + Spring Security -- Problem Load RichFaces
how to initiate hashtable and linklist
spring security 3.1 login not working.
requestDispatcher.forward() in OC4J