Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

JSP's and an Oracle Database

  Asked By: Egidius    Date: Jul 16    Category: Java    Views: 786
  

I'm trying to create some reports using jsp's/servlets pulling data
from an Oracle database. My problem lies in that I hard code
passwords into the connection string. I want to get away from this
but I'm not really sure how to do it. We have a password encrypted
site, which doesn't have anything to do with the Oracle password, and
I guess I would have to have the user put in their Oracle password
somewhere, but then how do I follow the user around with this
password and use that over and over again? I'm guessing cookies or
session id's. Does anyone have suggestions in implementing this or
good places to research this?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Beaudi Smith     Answered On: Jul 16

Create a constants file for ur application and place
ur oracle  connection string  there
Have a property reader to read from the property file

 
Didn't find what you were looking for? Find more on JSP's and an Oracle Database Or get search suggestion and latest updates.




Tagged: