Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

login to specific page like facebook  RSS feed

 
prateek raj
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there are two designation named admin and student.I jsut want help in coding to open specific page by email of person like done in facebook or any other mail account.
well one thing I have done is that I have matched email,password and type(designation) in my servlet page to database and the program run and also open the page.If email,pass,type matched witn admin than admin.jsp opens up else student.jsp.But but I wants to open the specific pafe by email that shows the profile of logged in user like in facebook it opens.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37242
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to CodeRanch!

I don't understand your question. The user logs in and you want to direct them to a different page based on role?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unless you intend to send complete login credentials in the email and thus the URL -which you positively should not do-, this scheme relies on the user already being logged in. In that case you can send the same URL to both users groups, and then decide which page to show in your page controller when they access your server.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!