Đang chuẩn bị liên kết để tải về tài liệu:
Bắt đầu với IBM Websphere smash - p 15

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

122 Chapter 6 Response Rendering Serving Static Files The easiest way to start responding to URL requests is to place static files inside the project’s /public directory. As the name implies, this is where all publicly accessible resources are located. Static files include HTML markup pages, CSS stylesheets, JavaScript files, images, and anything else that you would place on a plain old web server. Well, this isn’t very exciting, is it? If your users wanted to see static content, they could go read a book. What we want is dynamic content that can react to specific input data and generate a custom response. That’s. | 122 Chapter 6 Response Rendering Serving Static Files The easiest way to start responding to URL requests is to place static files inside the project s public directory. As the name implies this is where all publicly accessible resources are located. Static files include HTML markup pages CSS stylesheets JavaScript files images and anything else that you would place on a plain old web server. Well this isn t very exciting is it If your users wanted to see static content they could go read a book. What we want is dynamic content that can react to specific input data and generate a custom response. That s what this Web 2.0 world is all about anyway so let s give our users a truly interactive experience. Do not fret static files you still have an important role to serve. Even the richest of Internet applications requires a bootstrap HTML page to get things started and images style sheets and of course Javascript to enable the browser as an application platform. Remember any files located within the public directory are directly accessible by the URL. This means that you must ensure that you secure sensitive data behind an authentication scheme and also not rely on simple page flow to control your application. An example might be an online quiz. After the student answers a question he is forwarded to the answer page for further discussion. If your file and directory conventions are similar to Ztopic1Zquestion.html and ZtopiclZ answer.html you might be surprised how well your students do when taking these tests There are many ways to prevent such obvious URL hacking but you must be aware of how files may be accessed inside the public directory. Internationalizing Static Files For performance reasons support for serving internationalized files is disabled in WebSphere sMash. If you plan on offering pages in multiple languages for your application you will want to enable this feature. Internationalization i18n uses content negotiation to determine the browser s preferred

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.