Java Web Application using Design Patterns