登录认证 [英] Login Authentication

查看:108
本文介绍了登录认证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我想在java(j2ee)中创建一个登录页面,并且用户名和密码存储在Ms-access的数据库中
我只希望那些用户可以登录,其名称和密码保存在数据库中

我需要做些什么帮助.....
我想先谢谢你了. .下一步是编写一个Java应用程序或applet,该程序接受ID和密码信息,针对数据库进行验证,然后根据登录是否成功进行下一步.

应该是一个有趣的练习;或者您可以在CodeProject文章或Google中找到现成的解决方案. (如果您想从头开始创建全部内容)

0)创建数据库并创建表
(示例:db = users_db,表= users_tbl,3列= id,user_name,user_pwd)

1)创建您的JSP页面(或类似页面)

2)添加[input type ="text"],[input type ="passwrd"]和[input type ="submit"]

3)在ODBC连接(如果使用winsows)或直接访问.mdb文件之间进行选择

4)比较[inputs]输入的数据是否存在于数据库中

5)希望!


hi i want to make a login page in java(j2ee) and user name and password are stored in a database in Ms-access
i want only those users can login whose name and password are saved in the database

wat do i need to do pls help........
thanx in advance

解决方案

I guess you need to start by researching whether Java can use MS-Access, then design a database that holds username and password information for your registered users. Next step is to write a Java app or applet that accepts the id and password information, verifies it against the database, and proceeds to the next step depending on whether the login is successful.

Should be an interesting exercise; or you may find a ready made solution in the CodeProject articles or in Google.


maybe I can give you task from Mr.Richard MacCutchan answer :D
(if you want create all from scratch)

0) Create you database and you table
(example : db = users_db, table = users_tbl, 3 columns = id, user_name, user_pwd)

1) create your JSP page (or like)

2) add [input type="text"], [input type="passwrd"] and [input type="submit"]

3) choose between ODBC connection (if you use winsows) or direct access to .mdb file

4) compare if data entered by [inputs] exists in database

5) hope!


这篇关于登录认证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆