public static String getDBPath() { return sDBPath; } }//end of class
and then I retrieve the value each time in the servlet, when I need to, like this: String sDatabasePath = AppLevelInfo.getDBPath();
I am rather new to Java, so I don't the know which would be better method. The above was the very first method I tried out, as mentioned in my first post. What would be the pros and cons of using the above method as against the one suggested by Joe Parks?
Flat View: This topic has 15 replies
on 2 pages
[
«
|
12
]