All over again
(Sun Certified Web Component Developer for J2EE Platform
http://suned.sun.com/us/catalog/courses/cx-310-080.html)
servlet:
1. Inheriting the method in javax.servlet.http.httpservlet, generally add initialization operation (Get Home interface, etc.) in init (servletconfig config) {super.init (config);}. Controller's handling or use Request Dispatcher to the corresponding JSP or direct response.getwriter (). Println ("....") print page
Example 1: UserCenter.userCenter
Analysis: DOGET and DOPOST - "StartService -" GetViewXML - "getViewXML in ExchangeCenter, now no authentication, etc., some parameters are empty.
Example 2: MYSTORE. Servlet AccessController
Analysis: After logging in to go, DOGET, DOPOST method - "ProcessRequest, handled the current situation in this method (judgment is the home page? Login information error? Or log in to correct) and jump (RequestDispatcher) to the corresponding URL or re-output Lower Step interface