Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
5. Xác định vị trí của thư mục cài đặt GlassFish. Nhập vị trí hoặc chọn nó bằng cách sử dụng nút Browse. Lưu ý rằng một nút duyệt thư mục đã được cung cấp bởi vì các loại tài sản là thư mục. Nhấp vào nút Finish. Runtimes trang ưu tiên cài đặt tại danh sách GlassFish (xem hình 12,13). 6. Bây giờ bạn đã được thêm vào các môi trường thời gian chạy máy chủ GlassFish và đã sẵn sàng để sử dụng nó cho một dự án Web mới. . | Contributing Resources to the XML Catalog 649 A public identifier or publicid provides no hint as to the actual location of a schema or DTD but instead provides a unique identifier for the artifact that you can use to determine the location by some other means such as the XML catalog . A schema s public identifier is its namespace such as http java.sun.com xml ns j2ee and is typically specified by declaring a namespace in an XML document see line 4 in Example 15.1 earlier . A DTD s public identifier typically specified in a comment in the DTD is specified in an XML file by using the PUBLiC keyword in a DOCTYPE statement see Example 15.2 . Example 15.2 J2EE 1.3 PUBLIC DOCTYPE DOCTYPE web-app PUBLIC - Sun Microsystems Inc. DTD Web Application 2.3 EN http java.sun.com dtd web-app_2_3.dtd A system identifier or systemId provides a hint as to the actual location of a schema or DTD. A schema system identifier typically a URL is specified in an XML file using the xsi schemaLocation attribute. This attribute contains a list of paired items where the first item is the schema namespace and the second item is the system identifier see lines 6 and 7 in Example 15.1 earlier . A DTD system identifier also typically a URL is specified in an XML file using the SYSTEM keyword in a DOCTYPE statement see Example 15.3 . Example 15.3 J2EE 1.3 SYSTEM DOCTYPE DOCTYPE web-app SYSTEM http java.sun.com dtd web-app_2_3.dtd Every J2EE Web application contains the XML file web.xml known as the deployment descriptor see Example 15.1 which holds configuration details for the application such as servlet mappings. The deployment descriptor is located in the web-inf folder in each application. The deployment descriptor specifies the specific J2EE grammar it requires by declaring a system identifier. For J2EE 1.4 the system identifier is http java.sun.com xml ns j2ee web-app_2_4.xsd There are different grammars for the different parts and versions of the J2EE specification. As mentioned earlier .