TAILIEUCHUNG - Writing Enterprise Applications with Java™ 2 SDK, Enterprise Edition phần 3

Nhập một tên hiển thị (BonusServlet) và mô tả. • Bạn có thể bỏ qua khởi động và cài đặt trình tải ở đây bởi vì ví dụ này chỉ sử dụng một servlet. Tham số khởi Hợp phần hộp thoại: • Click Next. BonusServlet không sử dụng bất kỳ thông số khởi tạo. Hợp phần các biệt hiệu hộp thoại: • Click vào Add. • Loại BonusAlias và Return báo chí. Đây là bí danh tên bạn đặt trong lĩnh vực hành động của các hình thức HTML được nhúng trong file . • Click Finish. Trong cửa sổ. | SEPTEMBER 27 2000 21 Figure 8 Add Click Finish. WAR File General Properties dialog box Click Next. Choose Component Type dialog box Select Servlet if it is not already selected Click Next. Component General Properties dialog box Make sure BonusServlet is selected for the Servlet Class. LESSON 1A SIMPLE SESSION BEAN 22 SEPTEMBER 27 2000 Enter a display name BonusServiet and description. You can ignore the Startup and load sequence settings here because this example uses only one servlet. Component Initialization Parameters dialog box Click Next. BonusServiet does not use any initialization parameters. Component Aliases dialog box Click Add. Type BonusAiias and press Return. This is the same alias name you put in the ACTION field of the HTML form embedded in the file. Click Finish. In the Content pane you can see that the WAR file contains an XML file with structural and attribute information on the web application the file and the BonusServlet class file. The WAR file format is such that all servlet classes go in an entry starting with Web-INF classes. However when the WAR file is deployed the BonusServlet class is placed in a Context Root directory under public_html. This placement is the convention for Servlet compliant web servers. To change the display name or description Put your cursor in the appropriate field in the window Change them as you wish. Press the Return key for the edits to take effect. Specify JNDI Name and Root Context Before you can deploy the BonusApp application and its components you have to specify the JNDI name BonusServlet uses to look up the CalcBean session bean and specify a context root directory where the deployer will put the web components. JNDI Name Select the BonusApp file in the Local Applications window. The Inspecting window displays tabs at the top and one of those tabs is JNDI Names. Select JNDI Names. The Inspecting window shows a three-column display with one row. CalcBean is listed in .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.