Dynamic Web Project [message #209655] |
Wed, 05 March 2008 15:10 |
Eclipse User |
|
|
|
Originally posted by: xxxxx.gmail.com
Hi
im developing a dynamic web project in eclipse. i have some java classes
that access a database and they get the database url,database driver and
server from an inf file. Ive written a simple class that tests this and it
works fine, it retrieves the data from the inf file, accesses the database
and returns the data. The problem come when i try and fit this in with
some servlets and run it on apachi through eclipse. I have a html login
page, when user presses submit it sends data to a servlet which then calls
the database access methods in the java classes and depending on if the
input matches the database forward user to a successful/unsuccessful login
page. Now this works fine when i manually enter the url,driver etc into
the code but when i try it using the inf file i get errors. Do i need to
place the inf file in a particular directory e.g. WEB-INF so that it can
be accessed when it is run on the server?
Thanks
David
|
|
|
Powered by
FUDForum. Page generated in 0.03059 seconds