This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes JSP login Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP login" Watch "JSP login" New topic
Author

JSP login

Ashkar Rahman
Greenhorn

Joined: Aug 25, 2009
Posts: 3
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

Joined: Jan 10, 2002
Posts: 60804
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

There are also thousands of examples on the web.

Is this for work?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JSP login
 
Similar Threads
Login Servlet
SHA1 digest error
J2ME and JSP
how to auto submit JSP
How to write back to a property file using JSP