Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File and Servlet 1

Status
Not open for further replies.

rmarkert

IS-IT--Management
May 2, 2001
11
0
0
BR
I have a text file with information that I used to connect to database.
How can I read this file into Servlet?

Thank you,

Renata
 
You should either make this into a properties file and then use the Properties class in Java. For a better solution put all of this information in the web.xml file as intialization parameters for the servlet or context parameters for the Web Application. Wushutwist
 
Servlets have too fiew rights for using files. Better is to use databases with jdbc interface to them. Ion Filipski
1c.bmp


filipski@excite.com
 
For future questions about Servlets I suggest you post in the Servlet/JSP Forum on Tek-Tips: forum695. You are more likely to get a quick response on a forum dedicated to the subject. Wushutwist
 
Thank you very much!!!!!!!!!!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top