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.
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.