Java Server Pages: A Code-Intensive Premium Reference- P10

Java Server Pages: A Code-Intensive Premium Reference- P10: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. | Most often you will not need to use the config object because you will already have access to the ServletContext through the implicit application object. page The page object is just as it sounds a reference to the current instance of the JSP. It is initialized to the actual this reference by the generated servlet. The actual code snippet that does this follows Object page this You use the page object just as you would a this object to reference the current instance of your generated servlet. exception The implicit exception object only exists in a defined errorPage. It holds a reference to the uncaught exception that caused the error page to be invoked. You can find a complete description of the errorPage mechanism including use of the implicit exception object in Chapter 6 Handling JSP Errors. Summary In this chapter we covered the JSP implicit objects and how they are commonly used. We also talked about how they were created in the JSP s generated servlet. You should now have a clear understanding of the implicit objects that are available to you and what they represent. In Chapter 10 we cover using the JSP s standard actions. Chapter 10 Using JSP Standard Actions Overview The JSP standard actions provide an abstraction that can be used to easily encapsulate common actions. You have already seen the standard actions specific to a JavaBean in Chapter 3 JavaBeans and JSP Concepts. The remaining standard actions are defined and used where appropriate in the following sections. jsp param The jsp param action is used to provide tag value pairs of information by including them as subattributes of the jsp include jsp forward and the jsp plugin actions. The syntax of the jsp param action is as follows jsp param name paramName value- paramValue Table contains the attributes and their descriptions for the jsp param action. Table The Attributes for the jsp param Action Attribute Definition name This attribute represents the name of the parameter being referenced.

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
1    781    3    10-06-2024
Đã 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.