tomcat - How to load a page from a page without modifying the url in JSP? -


i have web application secured login. if user's session has expired how display error page when user attempts load secured page without causing url pathname change? reason why because don't want reveal extensions using. know specify index page directory i'm looking cleaner solution. avoid modifying standard error code pages (ex: 403/404). loads/redirects on page load nice.

any appreciated. thanks!

if don't want reveal extensions use .htaccess mod-rewrite.

you 2 things make sure hide them. first if request comes page . character after first / redirect them same page . , after stripped off.

secondly mod rewrite page request https://mydomain.com/mypage gets rewritten server side `https://mydomain.com/mypage.extension


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -