Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Database > Oracle
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 26th, 2008, 06:00 AM
Registered User
Join Date: Jun 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default project help


i m trying to verify the user name and password entered by the user form the data stored in oracle database using jsp...but its not working...

code ....

<%@ page import="java.sql.*" %>
<%Class.forName("oracle.jdbc.driver.OracleDriver") ; %>

            Connection con = DriverManager.getConnection("jdbc:oracle:thin:@loc alhost:1521:abc", "system", "abc");

            Statement s = con.createStatement();

            String pwd= request.getParameter("password");
            String user= request.getParameter("user");

            ResultSet r = s.executeQuery("select * from user_details where password = 'pwd' AND user='user'") ;

                out.println("Sorry, No such user exists. " + "Please <A HREF='welcome.jsp'>try again</A>.");
            } else {
<jsp:forward page="welcome.jsp"/>

please help me with this!!

  #2 (permalink)  
Old July 4th, 2008, 04:38 AM
Authorized User
Join Date: Nov 2006
Location: Bangalore, Karnataka, India.
Posts: 31
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via ICQ to debasisdas Send a message via AIM to debasisdas

you need to use COUNT with the username and corresponding password entered by the user to check for the existance of the same in the database. If count returns 1 allow to login else reprompt for the correct username and password.

Username must be a primary key field in the database table.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Website project vs Web Application Project... thenoseknows ASP.NET 2.0 Professional 0 January 14th, 2007 09:47 PM
How do i Call one project to another project kau_shuk VS.NET 2002/2003 8 December 5th, 2006 10:02 AM
UserControl of One Project in Other Project gadhiav ASP.NET 1.0 and 1.1 Professional 2 February 18th, 2006 07:51 AM
Add report of one project into another project tejaswibv Crystal Reports 0 July 13th, 2005 04:40 AM
From 1 project to get access to another project hplim18 Pro VB.NET 2002/2003 0 March 30th, 2004 10:33 PM

All times are GMT -4. The time now is 08:28 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.