Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

login authentication using jsp pages

843838Jan 13 2007 — edited Jan 14 2007
hi,

i have a page called 'main' to acess the 'update' page you must log in to view this page. but once your logged in i dont want it to take you to the login page if you require to go back

is there a way of checking if the user is logged on prior to chaning the page? when a link is checked so that i may check a session variable?

at the moment the 'update page'
reads in the session value but i dont know how to say if its null open a different page?
<%


     String username = request.getParameter( "EmployeeName" );
   if (username == null)
   {
   		System.out.println("hello");
   }

   session.setAttribute( "userName", username );
Message was edited by:
h1400046
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 11 2007
Added on Jan 13 2007
16 comments
569 views