This will do server side redirection.
If you type www.mysite.com/username then userhome.jsp page with argurent userhome.jsp?user=username will be execute in server.
But if you type “userhome.jsp?user=username” in browser it won’t redirect to mysite.com/username.
This url will take you to a page where it shows the “admin” user information.
To do this, you need to know how to achieve REST in Java. I’m afraid this will take more than few paragraph to explain. Look up in google “Spring MVC RESTful”.
Can’t I do it with url rewriting? I already do url rewriting
in the .htaccess file to point mysite.com to www.mysite.com - which
points to index.jsp, ie