[ Summary  |  Home Page  |  Forums  |  Bugs  |  Support  |  Lists  |  News  |  CVS  |  Files ]
Project Information


Submitter: Marius Oancea a.k.a mariuso (mariuso@sec.co.ro)

Project Descriptive Name: RewriteFilter

Project UNIX Name: rewritefilter

Project Description: RewriteFilter is a java servlet filter that try to solve a very common problem of not being well represented in serch engines because of '?' and '&' in the requested url. See the Home Page for more details.

Registration Description: RewriteFilter is a java servlet filter that try to solve a very common problem of not being well represented in serch engines because of '?' and '&' in the requested url.

For example if u have an url like http://a.b.c/path1/action.do?p1=v1&p2=v2, and another url http://a.b.c/path1/action.do?p1=v3&p2=v4, those two urls are represented as one entity. Only one of the urls will be reached by searchengines.

My proposed solution is based on servlet2.3 filters and the implementation that I have now is allready acceptable. The page generated by a servlet is parsed by my response wrapper and all A HREFs are converted from
http://a.b.c/path1/action.do?p1=v1&p2=v2 to
http://a.b.c/path1/action.do_WRPDakjdhkjadhkajhdkj
the part after _WRPD being a encoding of the parameters in the first url.

When the filter then gets the control (doFilter), it tries to recognize the pattern _WRPD and decode the string, reconstruct the original url and using RequestDispatcher forwards to the original url.

License: Apache Software License


This project is hosted by:
SourceForge Logo
[ Summary  |  Home Page  |  Forums  |  Bugs  |  Support  |  Lists  |  News  |  CVS  |  Files ]