In your web. Xml: myEntryName java.lang. String myEntryValue In your Java code: // Do once Context env = (Context) new InitialContext().
Lookup("java:comp/env"); // Do for every entry String entryValue = (String) env. Lookup("myEntryName"); Using JNDI you can read your settings every where in your webapp and also keep your configs out of your web. Xml if you need, in context.
Xml for Tomcat or jetty-env. Xml for Jetty for example (though format is different).
Thanks. I had to remove the return keyword you had, and surround with try/catch, but other than that it is working great – jeff Dec 9 '10 at 19:18 @jeff Yes it needs try/catch block, and thank you for correction, I removed return from my answer. – JohnS Dec 9 '10 at 19:32.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.