jsp - Java Servlet API: Remove GET parameters from URL -


is there anyway remove parameters request url? such when response arrives client, window's location url clean parameters. there anyway without doing redirects , parameters passed accessible on server?

thanks!

purpose:
shorten url. in site, links have handler convert parameters hash parameters. after this, location hash change listener perform ajax request (with location hash parameters) reload parts of document. when trying open links in new windows/tabs, plan "clean" url parameters , put location hash, delimited string. if not possible "clean" urls, might become long there parameters , location hash parameters well.

you use servlet filter httpservletrequestwrapper.

in dofilter method, can impact on request.

here official documentation on filter interface, , here page httpservletrequestwrapper.

finally, here page want do.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -