If JSP can do anything that a Servlet can do, why not use a single JSP (e.g index.jsp) as the controller to do everything in pretty much the same way as a servlet would (use the RequestDispatcher, access beans and so on)? Our index.jsp would not need to display anything, so display and processing could be separated sufficiently, could it not?
Hi Yes you can use jsp as a controller, which do not contain ne presentation logic. Just think of a person who knows writing html code. How could that person write java code......
Basicly a JSP is nothing else then a Servlet. The only difference is that it is especiall for presentation purpose. So you can use a JSP but you shouldn't.