Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Got Problems with Tuckey UrlRewriteFilter and Spring 3 Web MVC
 
Similar Threads
how to initiate hashtable and linklist
spring security 3.1 login not working.
htaccess and mod_rewrite issue
requestDispatcher.forward() in OC4J
RichFaces + Spring Security -- Problem Load RichFaces