Head First Servlets and JSP phần 7

Frank: Kể từ khi có bạn là một chuyên gia về giao diện đồ họa? Jim: không phải tất cả người dùng Windows? Joe: Vâng, tất nhiên, mọi người đều biết làm thế nào để sử dụng một giao diện, nhưng chúng ta đang nói về việc tạo ra một giao diện đồ họa trong mã. Jim: Ah . oh . um . | Chapter 9. Custom tags are powerful the c lmport tag With c irnport there are MOW THREE ways to include content So far we ve used two different ways to add content from another resource into aJSP. But there syet anotherway usingJSTL. Q The include directive @ include file Static adds the content from the value of the file attribute to the current page at translation time. @ The jsp include standard action jsp include page Dynamic adds the content from the value of the ýagểattribute to the current page at request time. The c import JSTL tag c import url http skyler Dynamic adds the content from the value of the URL attribute to the current page at reợMesítime. It works a lot like jsp include but it s more powerful and flexible. tktr 9eidivetti e. rrt4Oi import statement in bke generated servlet . 450 chapters Chapter 9. Custom tags are powerful Head First Servlets and JSP By Bert Bates Kathy Sierra Bryan Basham ISBN 0596005407 Publisher O Reilly Prepared for Stephen Goss Safari ID stephengoss@ Print Publication Date 8 1 2004 User number 747221 Copyright 2007 Safari Books Online LLC. This PDF is exclusively for your use in accordance with the Safari Terms of Service. No part of it may be reproduced or transmitted in any form by any means without the prior written permission for reprints and excerpts from the publisher. Redistribution or other use that violates the fair use priviledge under . copyright laws see 17 USC107 or that otherwise violates the Safari Terms of Service is strictly prohibited. Chapter 9. Custom tags are powerful using JSTL c irnpoiT can reach OUTSIPE the web app With jsp include or the include directive you can include only pages that are part of the current web app. But nowwith c import you have the option to pull in content from outside the Container. This simple example shows aJSP on ServerA importing the contents of a URL on Server B. At request time the HTML chunk in .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã 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.