Design Pattern And a demo for login(JSP+servlet)