Scenario:I have a
JSP page named "
menu.jsp". On this page the user have to choose a choice from a menu and i have implemented
onclick("myredirect(choiceValue)") on each menu item using javascript...
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 !!!
"menu.jsp"
#########
"CheckLogin.java"
#################