I need to retrieve init-param value from xml to Servlet i used following code
LoginServlet
&
If you have custom initialization work to do, override the no-arg init() method, and forget about init(ServletConfig). Is it ok to call getServletConfig() method inside the no-arg init() method? Yes, an instance of ServletConfig has already been saved by superclass GenericServlet.
http://javahowto.blogspot.com/2006/06/common-mistake-in-servlet-init-methods.html
It is always good to use packages for classes. It enables clear demarcation.