Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi I could get my session values in my jsp, now I want to compare the session value whether it matches the textbox, if it matches, it will redirect the user to another page else it will remain the same page, I am not sure how to proceed, please help . Much thanks!
Posted
Comments
Sergey Alexandrovich Kryukov 2-Oct-14 0:26am    
Why doing so?
—SA

1 solution

Java
if ( session.getAttribute("KinkyKeyValue").equals(someTextbox.gettext()) ) {
  // startParty();
}


would b a typical sollution - but you probably figured that out too. So where is the real problem?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900