Ask Experts Questions for FREE Help !
Ask
    rashmimanu1@yahoo.co.in's Avatar
    [email protected] Posts: 2, Reputation: 1
    New Member
     
    #1

    Mar 12, 2006, 06:24 AM
    Regarding JSP programing
    Sir,I have written one program in jsp for userlogin and password checking.It makes msaccess connectivity.
    It also extracts the data.But what ever the in the database,it is extracting.
    But I am going to give the username and password from outside,it should give username and password is not valid.
    But I have tried,it's not working.So,please give me one example of that.
    Then I can proceed further in my project.
    Thanks.
    Rashmi Rekha Panigrahi
    LTheobald's Avatar
    LTheobald Posts: 1,051, Reputation: 127
    Ultra Member
     
    #2

    Mar 13, 2006, 03:51 AM
    I'm not sure I get what you are trying to achieve. Am I right in thinking you want the user to log in using their username and password and then use that to connect to the database and retrieve some data?

    If so, the way you would probably do it is that on the page that processes the login, use request.getParameter() to retrieve the username and password from the field and append these to the URL you use to connect to the database. If you look on this page, under the "Making A Connection" section is a area showing you how to supply the username and password to connect to the database.

    One note though - I wouldn't take this approach. It would be a better idea to have the application accessing the database using the same username/password for all users. This user account should also have the minimum of privileges (e.g. SELECT, INSERT etc.). Having a database login for each of the systems user is hard to maintain and I don't think it would be that secure either.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

C++ programing compiler [ 8 Answers ]

Does anyone know where I can find a free or really cheap programin g compiler?

Honeywell RTH230B Programing [ 4 Answers ]

I have lost the programming instructions for my Thermostat RTH230B Does anyone here have a set they can copy? Eternal Gratitude Forthcoming

Programing [ 2 Answers ]

Hey Could someone please give me a name of a site that explains in depthly how to make your own computer program on windows me or could some very nice person explain it to me in extrem depth how to make your own program? Much apperciated

I want to learn about programing [ 11 Answers ]

I'm somewhat of a computer geek and I want my knowledge to increase this site helps a lot but I want to learn about programing, is there anybooks for beginners like me that will get me started


View more questions Search