In jsp page am creating login page, it contains username and password fields, am storing username in session, and am validating fields, if everything correct it will be redirect to Home page (home.jsp).
This all process happening successfully.
My question is, when i type url for login page, it come with localhost:2500/shashi/login.jsp url.
When it is redirect to home page, the url will be localhost:2500/shashi/home.jsp. its correct.
But suppose after log in, if session is not expired,
if i type localhost:2500/shashi/login.jsp login url, it should redirect to home i.e localhost:2500/shashi/home.jsp
How do i achieve this? java is server side code. web-server jetty