Hello everybody.....i am a newbie to
jsp. I just started writing a login page using jsp, partial code of which is given below.....
My requirement is that if there is no session exists.....it should show the login field table.....otherwise it should show welcom + usename by getting it from session.getAttribute....the action of the form is again the same jsp page for now...
Is this is the correct way of doin it or....any other way...the problem that I am facing if i do it in this way is that....after submitting the login form, the page will not be reloaded so...even if there is a session exists, again the login table is being displayed...so, if i refresh it once and see...a welcome message is appearing...
if at all i am forced to go in this way....how to automatically reload the page after submitting the login form....please help me in this regard