aspose file tools*
The moose likes Spring and the fly likes Use Spring RequestMapping as rewrite rule engine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Use Spring RequestMapping as rewrite rule engine" Watch "Use Spring RequestMapping as rewrite rule engine" New topic
Author

Use Spring RequestMapping as rewrite rule engine

Sven Anderson
Ranch Hand

Joined: Apr 14, 2004
Posts: 58
Hi,

We're currently writing a webapp using Spring MVC which is going to run on Tomcat 6 and Apache httpd. Given that Spring is providing us with HTTP RequestMapping functionality made me think using Apache's mod_rewrite module is unnecessary. Are there any good reasons (architectural/security reasons etc) for keeping rewrite functionality in Apache? Note, that our rewrite requirements so far are quite basic. I'm not sure and don't think Spring caters for the more complex forms of rewrite. It would be interesting to get other peoples opinion on this.

Thanks
S
Hong Anderson
Ranch Hand

Joined: Jul 05, 2005
Posts: 1936
As I understand RequestMapping doesn't offer a rule-based URL rewriting mechanism. Could you please to elaborate?


SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Use Spring RequestMapping as rewrite rule engine