I would just use a static property of an object. Like this:
public class AppProperties {
private static
String myProp = "default";
public static String getMyProp() {
return myProp;
}
public static void setMyProp(String newVal) {
myProp = newVal;
}
}
Then you can get it from anywhere by using:
AppProperties.getMyProp();
and set it using:
AppProperties.setMyProp(newVal);
This really isn't a
J2EE question, just a beginner
Java question.