1 / 20

Ant 와 웹 어플리케이션 개발

Ant 와 웹 어플리케이션 개발. 2003. 5. www.okjsp.pe.kr 허광남. Ant 와 Tomcat. Section3. Tomcat4.1 개요 웹 어플리케이션 구조 Tomcat Manager 와 Ant 개발 데모 정리. 목차. Web Application Server Servlet Container JCP Specification Reference Implementation. Tomcat4.1 개요. 웹 어플리케이션 표준 디렉토리 컨텍스트의 이해 배치 디렉토리 구성

Télécharger la présentation

Ant 와 웹 어플리케이션 개발

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Ant와 웹 어플리케이션 개발 2003. 5. www.okjsp.pe.kr 허광남

  2. Ant와 Tomcat Section3

  3. Tomcat4.1 개요 웹 어플리케이션 구조 Tomcat Manager 와 Ant 개발 데모 정리 목차

  4. Web Application Server Servlet Container JCP Specification Reference Implementation Tomcat4.1 개요

  5. 웹 어플리케이션 표준 디렉토리 컨텍스트의 이해 배치 디렉토리 구성 소스 디렉토리 구성 웹 어플리케이션 구조

  6. Servlet Spec 2.2 Portability Maintainability Scalability 웹 어플리케이션 표준 디렉토리

  7. Context is a Web Application http://okjsp.pe.kr/<context>/<dir>/file.jsp webapps/ROOT 예외 Default Context Context는 같은 이름의 dir보다 우선 상호 독립 IIS 가상 디렉토리 X 컨텍스트의 이해

  8. <protocol><domain>:<port><ContextName>/<dir> /<file> http:// localhost:8080 /examples /jsp/cal/cal1.jsp 웹 어플리케이션 구조(2)

  9. ContextRoot / web contents visible /WEB-INF invisible /web.xml webapp information /classes servlets, classes, *.properties /lib *.jar 배치 디렉토리 구성

  10. docs/ - 웹 어플리케이션의 문서들 src/ - 서블릿, 빈즈, 자바 클래스 패키지 체계처럼 디렉토리 구조 web/ - HTML, JSP, JavaScript, CSS파일, 이미지 웹 어플리케이션의 문서 루트 document root web/WEB-INF/ - 웹 어플리케이션 환경설정 파일들 web.xml, *.tld, 다른 자원 파일들클라이언트의 요청에 의해 노출되는 것을 금지 소스 디렉토리 구성(1)

  11. 개발 과정에서, 임시로 생성되는 두개의 디렉토리 build/ - 기본 빌드(ant)를 실행할 때, 웹 어플리케이션의 정확한 파일 구조 이미지 형성 <CATALINA_HOME>/webapps 디렉토리에 복사, "Manager" 웹 어플리케이션을 통해서 설치 후자는 개발기간 동안 매우 유용 dist/ - ant dist바이너리 배포판의 정확한 이미지를 생성 소스 디렉토리 구성(2)

  12. Manager WebApp Ant 의 Manager Task Sample Tomcat Manager 와 Ant

  13. Manager WebApp <CATALINA_HOME>/conf/tomcat-users.xml <?xml version='1.0' encoding='utf-8'?> <tomcat-users> … <role rolename="manager"/> … <user username="admin" password="admin" roles="admin,manager"/> </tomcat-users> Manager WebApp (1)

  14. Manager WebApp (2)

  15. clean – /build 청소 compile - /build에 클래스 생성 all – depends=“clean,compile” javadoc – api 문서 생성 /dist/docs dist – war파일 생성 Ant 와 WebApp Task(1)

  16. Manager+Ant taskdef <CATALINA_HOME>/server/lib/catalina-ant.jar install – /build 디렉토리 붙이기 reload - 서블릿과 자바빈즈 변경적용 remove –개발 컨텍스트 제거 Ant 와 WebApp Task(2)

  17. /tomcat-docs webapp sample 웹 어플리케이션 개발 표준 기본적인 build.xml build.properties 이용 Sample

  18. tomcat sample 활용 Eclipse 에서 web 개발환경 구축하기 개발 데모

  19. Tomcat4.1 개요 웹 어플리케이션 구조 Tomcat Manager 와 Ant 개발 데모 정리

More Related