오래 되면 기억이 나지 않아서 기록 해 둔다.
아래와 같이 설정하면
context path 요청시
org.thinker.mkk.controller.IndexController 서블릿을 호출한다.
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> <display-name>ControllerTest</display-name> <welcome-file-list> <welcome-file>first</welcome-file> </welcome-file-list> <servlet> <description></description> <display-name>IndexController</display-name> <servlet-name>IndexController11</servlet-name> <servlet-class>org.thinker.mkk.controller.IndexController</servlet-class> </servlet> <servlet-mapping> <servlet-name>IndexController11</servlet-name> <url-pattern>/first</url-pattern> </servlet-mapping> </web-app> |
'web.. > servlet/jsp' 카테고리의 다른 글
ServletContextListener 란? (0) | 2013.01.09 |
---|---|
ServletConfig & ServletContext (0) | 2013.01.09 |
HttpServletRequest 객체 & HttpServletResponse 객체 (0) | 2013.01.09 |
서블릿의 생명주기 & 멱등 (0) | 2013.01.09 |
HTML과 HTTP (0) | 2013.01.09 |