Changed the project structure to maven style. Added property files. Changed project to web project in pom.xml.