All other answers were for a fixed url like http://www.example.com/pagename.jsp, but I didn't want to show my .jsp page names anywhere outside the servlet.
Thats why I mentioned that every thing is in servlet controller.
Use this code in your Jsp files.
<noscript> <meta http-equiv="refresh" content="0.0;url=?action=nojs"> </noscript>
Here "action" is a variable in your servlet which is used for decision taking.
You can change it accordingly.