This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
this function uses confirm pop-up box to check whether the user want to continue with his current choice.. if user select ok then it'll return true and it will be stored in check variable...
now i want to send this choiceValue to a servlet named "CheckLogin.java"which checks whether the user is logged in using session tracking ..if the user isn't logged in he'll be redirected to "login.jsp" page
otherwise he'll be redirected to "instructions.jsp" page
..i have implemented the whole stuff as below...and i want to use the "choiceValue" throught the session but its not working as i expected....Please somebody help me !!!
Instead of checking the session as null or new , you should set an user object as an atttribute in session when you first login to your application and then check its value in servlet filter (filter should exclude your login url, otherwise you will end up in a loop) so that you can keep track of user session.