Meaningless Drivel is fun!
The moose likes JDBC and Relational Databases and the fly likes Properties File reading Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Properties File reading" Watch "Properties File reading" New topic

Properties File reading

Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 265
Dear Ranchers,
I'm doing a project in JSP and MySQL. For the JSP-MySQL connection , I'm now writing the connection statments in each and every time when I want to insert,delete, update of select the database queries. If I change the MySQL root password, it will affect the coding completely.. So Instead of that I want to put properties file to store the

MySQL database

Please help me by sending some links where I can read and master about Properties file.


Aravind Prasad
Jan Cumps

Joined: Dec 20, 2006
Posts: 2562


I think the Java in General (beginner) is more appropriate for questions on the use of property files.

Regards, Jan

OCUP UML fundamental and ITIL foundation
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42959
You might start by reading Java Tutorial: Properties.
I agree. Here's the link:
subject: Properties File reading
It's not a secret anymore!