This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Storing data into excisting Data

 
Chennarao Marvatu
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
posted October 30, 2004 06:48 AM
--------------------------------------------------------------------------------
Dear all..
I have a property file at client side .i have to get the
some properties from the server side and store them in the
excisting client properties file..please help me out in this .
i have done like this but not working..

HashMap versionUpdates=secReqObject.getVersionInfo();
String notificationServ = (String)versionUpdates.get("NotificationServerName");
String notificationUser = (String)versionUpdates.get("NotificationServerUName");
String notificationPass = (String)versionUpdates.get("NotificationServerPwd");

StringBuffer sb1 = new StringBuffer();
sb1.append("###NOTIFICATION SERVER");
sb1.append("\r\n");
sb1.append("NotificationServerName=");sb1.append(notificationServ);
sb1.append("\r\n");
sb1.append("NotificationServerUName=");sb1.append(notificationUser);
sb1.append("\r\n");
sb1.append("NotificationServerPwd=");sb1.append(notificationPass);
sb1.append("\r\n");
System.out.println("PROPERTIES FROM SERVER"+sb1);
FileWriter f = new FileWriter(iniFilePath,true);
f.write(sb.toString());
f.close();

2) one more question is i want to store the Login time in the Client
Property file how can i do that please send me code ..i have to FINISH
this task today itsele...I will be very grateful to u

Thanks in advance
chennarao
 
Tony Morris
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Duplicating the core API is bad.

Read this:
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic