use Struts MVC framework
1 change servlet action to java class which has a execute() metthod in
it.
2 drop the forward or redirect codes ,add the logic in the
struts.xml. every action got a result Jsp page.