views:

436

answers:

0

I have a web application that will be run on a windows 2003 server box. A http link will launch the web application(a jsp form) and that application opens up an oracle database(in the constructor). Different users will be using this application and each user will be sending his or her own username, password as well as the servername and the SID. i think the port will always be the same but thats not really a big deal.

I will not be hosting or maintaining the server this is running on so i am flying by the seat of my pants here.

an example, of course to connect to the database would be:
dbConnection = DriverManager.getConnection("jdbc:oracle:thin:@servername:port:database_name", "username", "password");

I need to load these variables/parameters when the jsp form loads because in the constructor is where i attempt to connect to the database.

The application has a backing bean and have no experience with managed beans, jsp, jsf or anything of the sort but am trying to learn quickly so please be patient with my noobish questions.

  1. do you set up and read those database connection parameters in the web.xml file and if so how would that be done?

  2. would you go through the actual faces-config.xml file to load the parameters through that?

How will these parameters be passed through the http link?

Thanks all for your help in advance!!

--usmsci