My understanding of servlet configuration files

xiaoxiao2021-03-06  43

After understanding it, you know that the original servlet is as simple! Below is the simplest servlet configuration (web.xml) Controm.wc // Today specifies the name of the servlet This name likes you like, as long as you don't repeat the web.controller.controller // The package path and name of the servlet class here, pay attention to the case The following two lines configuration The role is to tell the web container, hand it over to the servlet called when requesting the path request in . contORLLER.WC /contorller.wc If your web project is passed by localhost: 8080 /Web/index.jsp, then add the above servlet configuration, enter localhost: 8080 / web / contorler.wc in the IE address bar, the web container will inspire specified servlet. Handling this request. If you have any wrong, please correct it.

转载请注明原文地址:https://www.9cbs.com/read-53227.html

New Post(0)