1

I am using UrlRewrite in a JSP project over JBoss. I have configured some rules, so that stuff like:

http://mysite/parameter

Is read as:

http://mysite/index.jsp?parameter=parameter

And so on.

Now, what I would like to know if there's a way to replace certain characters submitted in the URL by the users with others. Something like what Wikipedia does. When you use a space in the URL in WikiPedia, it's replaced by a "-".

Is UrlRewrite the right tool for this? I also have a few filters around, but I guess I shoul be able to accomplish this with UrlRewrite or a similar tool.

Fernando Briano
  • 7,699
  • 13
  • 58
  • 75

1 Answers1

0

In case anyone needs to do this same thing, I've found out it's possible using Servlets to filter URLs, response.sendRedirect() and request.getRequestDispatcher().forward().

Community
  • 1
  • 1
Fernando Briano
  • 7,699
  • 13
  • 58
  • 75