Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSP and the fly likes jsp login page with dropdown menu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp login page with dropdown menu" Watch "jsp login page with dropdown menu" New topic
Author

jsp login page with dropdown menu

sayush anand
Greenhorn

Joined: May 23, 2012
Posts: 13
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

Joined: Jan 28, 2008
Posts: 5575

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

Joined: Jan 10, 2002
Posts: 60057
    
  65

If you are going to hard-code the username and password on the page, why bother to have a login page at all? :confused:


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp login page with dropdown menu
 
Similar Threads
Session Management Still weird
Redirecting to Login Page
Studying HeadFirst book: cannot make authentification
When to use beans or servlets
hi