Thread: login.jsp
View Single Post
  #3 (permalink)  
Old 05-30-2008, 10:43 AM
Eku Eku is offline
Senior Member
 
Join Date: May 2008
Location: Makati, Philippines
Posts: 228
Eku is on a distinguished road
hello,

Another approach is you can add another column in your database table. I think you have Username and password in your table. You can another column in your table named "Access_Rigth". Where in you can fill it with eithe "ADMIN" or "NORMAL". Just retrieves this fields so can compare it later in your Servlet or script. Then point the Next Page to the AdminMain.jsp for Admin or Main.jsp for Normal User. I hope that helps
__________________
Mind only knows what lies near the heart, it alone sees the depth of the soul.
Reply With Quote