1. Lời giới thiệu Ngày nay các nhà phát triển Java đang phải đối mặt với những thách thức về xây dựng các ứng dụng Web phức tạp. Struts Framework cung cấp một cơ sở hạ tầng cho phép các nhà phát triển xây dựng các ứng dụng Web ở mức cao hơn và dễ dàng bảo dưỡng. Khóa học này cung cấp các kỹ năng về thiết kế và xây dựng các ứng dụng Web sử dụng Struts Framework. Các học viên sẽ học được cách hợp lý hóa các quy trình phát triển bằng cách tích hợp, áp dụng và mở rộng các thành phần Struts. 2. Đối tượng Khóa học này rất phù hợp cho các học viên - những người quan tâm đến phát triển các ứng dụng Java Web với Struts. 3. Yêu cầu trước khi tham gia khoá học Để hoàn thành tốt khoá học, học viên cần phải: - Có kinh nghiệm về ngôn ngữ lập trình Java
4. Các kỹ năng thu được Sau khi hoàn thành khoá học, học viên có thể: - Phát triển các ứng dụng Web bằng Java ở mức doanh nghiệp ở mức cao hơn sử dụng Struts framework
- Áp dụng các kiến trúc Struts bằng việc sử dụng mẫu thiết kế MVC
- Xây dựng các lớp action để xử lý các yêu cầu ứng dụng
- Tác dụng của việc sử dụng thư viện tags trong Struts và thư viện tag chuẩn JSP
- Hiệu suất hóa việc kiểm tra dữ liệu cả trên clien side lẫn server side bằng việc sử dụng Struts Validation Framework
- Tích hợp Struts Tile Framework để phát triển các JSP layouts có thể sử dụng lại được.
5. Thời lượng: giờ 6. Học phí: Nội dung khóa học ENTERPRISE WEB APPLICATION DEVELOPMENT Web application architecture - Design goals of a Web application
- Components of an enterprise architecture
Java server technologies - Java Web components: servlets and JSP
- Application server environments
STRUTS FUNDAMENTALS MVC architecture - Contrasting Model 1 and Model 2
- Benefits of the Struts framework
- Defining Struts components
Getting started with Struts - Installing and configuring Struts
- Identifying Struts core classes
- Integrating Struts Custom Tag Libraries
Struts development process - Analyzing application flow
- Building the JavaBean model
- Presenting a view with JSP
- Dispatching actions with the controller
HANDLING APPLICATION REQUESTS Defining Action Classes - Configuring the Struts Controller
- Processing requests with Actions
- Managing application state
- Forwarding business data to JSP view components
Processing HTML forms - Defining ActionForm beans
- Populating ActionForms with form data
- Automatically generating ActionForms
Integrating business logic with J2EE design patterns - Enforcing MVC architecture
- Decoupling the business tier using the Business Delegate pattern
- Transferring data using the Value Object pattern
Advanced controller features - Leveraging pre-defined Struts Actions
- Handling exceptions: declarative and programmatic approaches
- Partitioning applications with Struts modules
- Extending Struts with Plug-Ins
GENERATING DYNAMIC VIEWS Integrating JSP custom tags - Analyzing the role of custom tags
- Custom tag usage model
- Configuring tag libraries
Building Struts views - Handling data input using Struts HTML tags
- Generating output with Struts Bean tags
- Controlling page content with Struts Logic tags
Streamlining JSP development - Defining JSTL functionality
- Formatting output using JSTL-EL
- Comparing JSTL with Struts custom tags
Internationalizing applications - Translating views to multiple languages
- Integrating resource bundles with Struts
VALIDATING USER INPUT Developing validation strategies - Identifying validation requirements
- Client- vs. server-side validation
Struts Validator essentials - Benefits of using the Struts Validator
- Leveraging pre-defined validation rules
Enabling validation - Assigning validation rules to HTML forms
- Validating forms with JavaScript
- Server-side validation with the DynaValidatorForm
- Customizing server-side validation with ActionError objects
ADDING TILES FOR PRESENTATION FLEXIBILITY Employing the Tiles Framework - Installing and configuring Tiles
- Creating a layout using Tiles custom tags
Changing the layout of the application - Modifying XML Tiles definitions
Nesting tiles to customize the layout |