• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsp login page with dropdown menu

 
sayush anand
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I need to design a basic JSP Login page which takes the username as ADMIN and password as PASSWORD . (I do not want to check for the username and password from the database at the moment )
There will also be a third drop down menu which has two options - GENERATE and VERIFY . If the user chooses GENERATE , control should go to Generate.jsp and if the user chooses Verify the control should go to Verify.jsp

It should also check if username=="admin" and password=="password" then only control should go ahead otherwise error should come

Can anyone help me on how to do this ?




 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sayush anand wrote:
It should also check if username=="admin" and password=="password" then only control should go ahead otherwise error should come

So, what you find now?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65126
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are going to hard-code the username and password on the page, why bother to have a login page at all? :confused:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic