TAILIEUCHUNG - Java Server Pages: A Code-Intensive Premium Reference- P16

Java Server Pages: A Code-Intensive Premium Reference- P16:Before you begin reading Pure JSP Java Server Pages, you might want to take a look at its basic structure. This should help you outline your reading plan if you choose not to read the text from cover to cover. This introduction gives you an overview of what each chapter covers. | td align center String new String ID td tr tr td align left DESCRIPTION td td align center String new String DESCRIPTION td tr tr td aljgn left PRICE td td align center String new String PRICE td tr tr td aljgn left QUANTITY td td align center String new String QUANTITY td tr table body html As you can see there is really very little difference in the application code and the JSP code. The only noticeable differences are the way we load the XMLResource and the way we output the results. To see this JSP run you will need to copy the SAXHandler class file to the SERVER_ROOT purejsp WEB-INF classes directory and the and the to the SERVER_ROOT purejsp directory. Then load the following URL into your browser http yourserver 8080 purejsp You should see a page similar to Figure . fii fdi Jcch d - - j .1 J J J J J tf Itl h tt Jrrt pt- 3 . XML 3 Im. n DESCMPTiCW PRICE 33445 AmAd Pcwsci T t Jnlrrr .h -Tkil Mm -i Myrtrry Figure Output from . Summary In this chapter we covered the basics of XML. We covered how to use Sun s SAX parser. We also look at an example of how you would incorporate XML and JSPs. - 151 - In Chapter 16 JSP Communication with Servlets you learn how you can use JSPs and servlets using the Model-View-Controller design pattern. Chapter 16 JSP Communication with Servlets Overview In this chapter we are going to discuss how you can incorporate servlets and JSPs using the Model-ViewController design pattern MVC . The MVC originated from Smalltalk and was used to design user interfaces wherein the application was made up of three classes a Model a View and a Controller. Each of these classes is defined in Table . Table The Classes of the MVC Class Definition Model The Model represents the data or application object. It is what is being manipulated and presented to the user. View The View is .

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.