This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have a doubt in my application. The flow is as follows : When my appln starts a servlet is loaded and a jsp is displayed. On a particular event in the jsp an Action class is called from where my java class is invoked. In this java class, I have hardcoded the folder path of an API . I want to avoid the hard coding. I tried giving it in the init param of web.xml but the value appears "null" in my java class. However the value is obtained in the servlet, while the application is loaded. Can u tell me what is wrong? or suggest a work around for removing the hardcoding.