TAILIEUCHUNG - XML by Example- P9

Tham khảo tài liệu 'xml by example- p9', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Building XCommerce 385 Figure Creating the Data Source in ODBC Before you can use the XML server you need to create the database schema and insert a few products in the database. This is what XMLServerConsole is for. Point your browser to localhost 81 console. First click Create Tables see Figure . Enter the product information as shown in Figure . Figure Creating the database schema 386 Chapter 12 Putting It All Together An e-Commerce Example Figure Creating products in the database The Middle Tier As explained in Chapter 11 N-Tiered Architecture and XML the middle tier server is a servlet that manages various XML documents. There is a document for the list of merchants or another for the list of products and more. The servlet applies style sheets to them. The middle tier server is made of the Shop class shown in Listing . Shop decodes the URL and routes the requests to the appropriate object. Listing package import . import . import . import . import . Shop manages the shop using XSL for any output. inversion Sep 10 1999 The Middle Tier 387 @author Benoît Marchai bmarchal@ public class Shop extends HttpServlet the merchant list and the shopping cart protected Merchantcollection merchants protected Comlet checkout return the list of merchants public Merchantcollection getMerchants return merchants initializes the servlet public void init throws ServletException merchants new MerchantCollection this checkout new Checkout this handle GET request @param request the request received from the client @param response interface to the client exception lOException error writing the reply exception ServletException error in processing the request .

TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
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.