Added slightly modified sample code. Still need to modify links, compile and change web.xml