If you trust this link, click it to continue.
http://javarevisited.blogspot.com/2011/12/load-on-startup-servlet-webxml-example.html