1. Lời giới thiệu Java Server Pages (JSP) và servlets là các công nghệ tầng Web mấu chốt được định nghĩa trong nền J2EE. Khoá học phát triển thành phần Web với Servlet và công nghệ JSP cung cấp cho các nhà phát triển đã có kinh nghiệm về Java một cách để thu được những kiến thức và kỹ năng cần thiết để xây dựng nhanh chóng những ứng dụng web từ công nghệ JSP và servlet sử dụng container web Tomcat và phần mềm khung Struts. Học viên sẽ có cơ hội nghiên cứu những phương pháp hiện tại trong việc phân tích, thiết kế, phát triển và triển khai các ứng dụng web với công nghệ Java. Những bài tập thực tế cung cấp cho học viên kinh nghiệm xây dựng và triển khai những ứng dụng web vừa và nhỏ được tìm thấy trên Intranet và các web sites thương mại cỡ nhỏ. Khoá học này cũng là một phương pháp lý tưởng để chuẩn bị cho kỳ thi lấy chứng chỉ của Sun: Chuyên viên phát triển các thành phần mạng (SCWCD) cho J2EE 1.4. 2. Người cần tham gia khoá học Những người phát triển ngôn ngữ lập trình Java với những kỹ năng tương đương với những người có chứng chỉ: người phát triển Java của Sun, những người đang tạo các thành phần web (chẳng hạn servlets và các thẻ tuỳ chỉnh) được sử dụng trong việc ghép nối và khởi sinh nội dung web động. Đây không phải là khoá học cho những người thiết kế trang web sử dụng ngôn ngữ đánh dấu siêu văn bản (HTML), công nghệ JavaScript hay các công nghệ trình bày trang web khác. 3. Yêu cầu trước khi tham gia khoá học Để khoá học đạt kết quả tốt, học viên cần có khả năng: Để khoá học đạt kết quả tốt, học viên cần có khả năng: - Viết được các ứng dụng Java, chứng tỏ được khả năng lập trình của mình
- Tích hợp mã lệnh Java có sẵn (ví dụ, sử dụng lại các lớp có sẵn được tạo bởi các thành viên khác)
- Thiết kế các ứng dụng Java.
- Mô tả các lợi ích về mặt chức năng của một kiến trúc n-tầng
- Viết một trang web sử dụng ngôn ngữ đánh dấu siêu văn bản (HTML)
4. Kỹ năng thu được Sau khi hoàn thành khoá học, học viên sẽ có khả năng: - Viết được các Java servlets
- Tạo các ứng dụng web mạnh sử dụng Struts, quản trị phiên, các bộ lọc và tích hợp cơ sở dữ liệu.
- Viết các trang JSP
- Tạo các trang JSP dễ bảo trì sử dụng ngôn ngữ biểu thức, thư viện thẻ JSP chuẩn (JSTL) và phần mềm khung Struts (Struts Tiles framework).
- Tạo các ứng dụng web mạnh có thể tích hợp giữa các trang JSP và các Struts
5. Thời lượng: 40 giờ Nội dung khoá học PHÁT TRIỂN DỊCH VỤ WEB VỚI SERVLET VÀ JSP Module 1 - Introduction to Web Application Technologies - Describe Internet services
- Describe the World Wide Web
- Distinguish between web applications and web sites
- Describe Java servlet technology and list three benefits of this technology compared to traditional Common Gateway Interface (CGI) scripting
- Describe JavaServer Pages technology and list three benefits of JSP pages technology over rival template page technologies
- Describe the Java 2 Platform, Enterprise Edition (J2EE platform)
Module 2 - Developing a View Component - Design a view component
- Describe the Hypertext Transfer Protocol
- Describe the web container behavior
- Develop a view servlet
- Configure and deploy a servlet
Module 3 - Developing a Controller Component - Design a controller component
- Create an HTML form
- Describe how HTML form data is sent in the Hypertext Transfer Protocol (HTTP) request
- Develop a controller servlet
- Dispatch from a controller servlet to a view servlet
Module 4 - Developing Dynamic Forms - Describe the servlet life cycle
- Customize a servlet with initialization parameters
- Explain error reporting within the web form
- Repopulating the web form
Module 5 - Sharing Application Resources Using the Servlet Context - Describe the purpose and features of the servlet context
- Develop a servlet context listener to initialize a shared application resource
Module 6 - Designing the Business Tier - Describe the Analysis model
- Design entity components
- Design service components
Module 7 - Developing Web Applications Using Struts - Design a web application using the Struts MVC framework
- Develop a Struts action class
- Configure the Struts action mappings
Module 8 - Developing Web Applications Using Session Management - Describe the purpose of session management
- Design a web application that uses session management
- Develop servlets using session management
- Describe the cookies implementation of session management
- Describe the Uniform Resource Locator (URL)-rewriting implementation of session management
Module 9 - Using Filters in Web Applications - Describe the web container request cycle
- Describe the Filter API
- Develop a filter class
- Configure a filter in the web.xml file
Module 10 - Integrating Web Applications With Databases - Understand what a database management system (DBMS) does
- Design a web application to integrate with a DBMS
- Configuring a DataSource and Java Naming and Directory Interface (JNDI) API
Module 11 - Developing JSP Pages - Describe JSP technology
- Write JSP code using scripting elements
- Write JSP code using the page directive
- Write JSP code using standard tags
- Write JSP code using the Expression Language (EL)
- Configure the JSP environment in the web.xml file
Module 12 - Developing JSP Pages Using Custom Tags - Understand the job roles involved in web application development
- Understand the rationale in using custom tags
- Develop a JSP page using an existing custom tag library
Module 13 - Developing Web Applications Using Struts Action Forms - Describe the components in a Struts application
- Develop an ActionForm class
- Develop a JSP page for a View form
- Configure the View forms
Module 14 - Building Reusable Web Presentation Components - Describe how to build web page layouts from reusable presentation components
- Include JSP segments
- Develop layouts using the Struts Tiles framework
|