This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills: The software developer's life manual and have John Sonmez on-line!
See this thread for details.
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP login

 
Ashkar Rahman
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone help me to write a simple login form using java..
description :
I need to get the user name password from the user and check with the database(Ms. Access), if the username+password matches the user should get accessed to another (JSP) page.??

please place the code with explanation comments..
Thanking you in Advance

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ashkar Rahman wrote:please place the code with explanation comments

That's not the way that JavaRanch works. You write the code. and then get help with any aspects that are giving you problems.

As an approach, when you detect a valid login, place a value in the session that can be checked for. Use a servlet filter to check that this value is there. If so, the user has logged in. If not, then the user needs to log in.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are also thousands of examples on the web.

Is this for work?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic