If you directly useJava ServletsYou will have to process HTTP input and HTML output in the Java class.Java programmingExperience to build complex applicationsProgram. The addition of JSP allows you to distinguish the HTML expression logic from the complicated business logic embedded in servlets. This means that the expression layer can be written by experienced script writers.CodeAnd advanced Java developers can focus on solving more complex problems in servlets and beans.
Whether you haveJava programmingKnowledge, all can use JSP. JSP contains some server labels so that dynamic data can be displayed without writing a line of Java code. You can directly access the bean to complete the operation, and then useJSP tagDisplay the result as dynamic content. You can also use servlets to generate beans, and the operation results of the servlets operation are stored in them. Then, you can use JSP labels to display the results without writing Java code on the JSP page.
Read: http://www.javah.net/JSP_JSF/20070419/277.html