File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Properties File reading Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Properties File reading" Watch "Properties File reading" New topic
Author

Properties File reading

Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 258
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
Username
Password

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

Regards

Aravind Prasad
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2343

Aravind,

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

Regards, Jan


OCUP UML fundamental
ITIL foundation
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35241
    
    7
You might start by reading Java Tutorial: Properties.


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Properties File reading
 
Similar Threads
reading properties to get connection
Tomcat realms
Communications link failure Last packet sent to the server was 0 ms ago
how to access db.properties file properties in hibernate.cfg.xml file
Properties File reading