how to rewrite or generate url like twitter and facebook in java….
Example : https://www.facebook.com/username, https://www.twitter.com/username
is there any java framework for this?
If anyone’s got any ideas on how I could do this, or examples to help me that would be great!
There are quite a lot of options. Almost every framework can do that. Here are a few options:
UrlRewriteFilter/${username}/and handle therequest.getRequestURI()orrequest.getPathInfo()