This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

Use Spring RequestMapping as rewrite rule engine

Sven Anderson
Ranch Hand

Joined: Apr 14, 2004
Posts: 58

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.

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
Have you checked out Aspose?
subject: Use Spring RequestMapping as rewrite rule engine
It's not a secret anymore!