Reply To: Request isn't Redirecting

Splash Forums Rewrite Users Request isn't Redirecting Reply To: Request isn't Redirecting

#25658

Hey,

you cannot use regular expressions within the path. You will have to use a parameter instead. Something like this:

.addRule(Join.path("/{ID1}/{ID2}/tutorial/{something}").to("/MyServlet"))

If you are not interested in the value of something, you can also use:

.addRule(Join.path("/{ID1}/{ID2}/tutorial/{*}").to("/MyServlet"))

Please also note, that you may have to add the context path to your link if you are not deploying to the root context path of your app server:

<a href="/myapp/12/12/tutorial/java"> Tutorial </a>