Solved

Read multiple values from dynamic properties file in java

Posted on 2008-10-15
1
2,608 Views
Last Modified: 2013-11-23
I have a properties file which contains the following fields:

Tag1=[URL]
TagValue1=www.abc.com
Tag2=[Study Code]
TagValue2=ABC 123
....
What i need to accomplish is that if one of the tags in square brackets, such as [Tag1], the value in the will be replaced with the value specified after the equal sign.  If the value was not specified, then no modification to the copied collection title will be performed. Number of tags specified in properties can change so i need to make this dynamic. Basically, the properties file is dynamic and number of tags specified along with their values can change. How can i accomplish this task in Java?
0
Comment
Question by:CalmSoul
1 Comment
 
LVL 6

Accepted Solution

by:
javaexperto earned 500 total points
ID: 22736640
well lets see, what initials values have the tags in the left side? for example:
Tag1=[URL]
do you want to assign String URL to the variable Tag1?
what when you don't have [] like:
TagValue2=ABC 123
0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
allswap challenge 6 98
GUI builder for Eclipse? 8 35
hibernate example issues from command prompt 10 41
by zero exception 10 41
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question