Re: Clarification on withInboundCorrection method…

Splash Forums Rewrite Users Clarification on withInboundCorrection method… Re: Clarification on withInboundCorrection method…

#22497

Hi,

So, I looked at your project on JBoss AS7 and it works fine except you have mapped URLs to resources that don’t appear to exist, but the mechanism is functioning normally. Maybe I don’t know how Tapestry works, but it doesn’t look like you are actually mapping URLs to pages that Tapestry renders.

addRule(Join.path("/fr/contactez-nous").to("/fr/ContactUs").withInboundCorrection()).
addRule(Join.path("/en/contact-us").to("/en/ContactUs").withInboundCorrection()).
addRule(Join.path("/PrettyURL").to("/moduleA/ThePage").withInboundCorrection());

For instance:

When I access “/moduleA/ThePage” I am redirected to “/PrettyURL” and I get a 404 error from the server. The contents of the error page state that “/moduleA/ThePage” cannot be found… this means that Rewrite is working normally.

Thoughts?

Lincoln