Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Giới thiệu
Đăng ký
Đăng nhập
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
Giới thiệu
Đăng ký
Đăng nhập
0
Trang chủ
Công Nghệ Thông Tin
Đồ họa - Thiết kế - Flash
Bắt đầu với IBM Websphere smash - p 25
Đang chuẩn bị liên kết để tải về tài liệu:
Bắt đầu với IBM Websphere smash - p 25
Hoàng Khang
49
10
pdf
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
222 Chapter 9 Security Model def user = request.subject.remoteUser[] def groups = []+request.subject.groups[] % Hello ${user} Your group(s): % ${g} "Logout The final page we need to add is a logout page. It is always a good practice to provide a means to enable your users to log out of an application. Listing 9.9 creates a logout page. You often should do some housekeeping on the “user” Global Context and remove any session-like variables that you do not want to persist into the user’s next access to the site. This could include sensitive data that should not be. | 222 Chapter 9 Security Model def user request.subject.remoteUser def groups request.subject.groups h1 Hello user h1 h2 Your group s h2 ul groups.each g - li g li ul h2 a href getRelativeUri logout.gt Logout a h2 body html The final page we need to add is a logout page. It is always a good practice to provide a means to enable your users to log out of an application. Listing 9.9 creates a logout page. You often should do some housekeeping on the user Global Context and remove any session-like variables that you do not want to persist into the user s next access to the site. This could include sensitive data that should not be persisted or just as a means of good housekeeping. Listing 9.9 Logout Page public logout.gt html head title Logout title head body zero.core.security.LoginService.logout h1 You have been logged out h1 h2 Return to a href getRelativeUri index.gt Home page a . h2 body html Download from www.wowebook.com Testing the Secure Application 223 Testing the Secure Application At this point we have all the pieces required to test our secure application. Start the application and open your browser to the secure https port defined in the configuration file. In the preceding example we had chosen port number 9443 so your URL is https localhost 9443 . You should be presented with our insecure main landing page without being prompted for a login as shown in back in Figure 9.4. Click the link to go to the secure page. If everything is configured properly you will be redirected to the login page see Figure 9.10 for user authentication. On subsequent attempts to access the secure page after logging in you will have a valid browser token and will not need to log in again. To test out our failed login logic enter either a bad username or wrong password and click Submit. You will be returned to the login page and an appropriate error message will be displayed as seen in Figure 9.11. At this point log in using your correct username and password and verify that you .
TÀI LIỆU LIÊN QUAN
Bài tập bắt đầu với Java
Bài 3: cho vay đầu tư bất động sản với lãi suất có thể điều chỉnh và khoản thanh toán khả biến - Giảng viên Phan Thị Thu Hương
Nghiên cứu ước đầu thành phần bọ rùa, bọ xít bắt mồi và mối quan hệ giữa một số loài bắt mồi phổ biến với sâu hại trên cây chè ở Hạ Hòa, tỉnh Phú Thọ
LUẬN VĂN: Một số giải pháp nâng cao năng lực tư vấn đối với Công ty CP tư vấn xây dựng công nghiệp và đô thị Việt Nam (VCC) trong quá trình hội nhập
Luận văn: Vai trò quản lý nhà nước đối với sự hình thành và phát triển thị trường BĐS ở việt nam
RỦI RO VỀ PHÁP LÝ VỚI NHÀ ĐẦU TƯ BẤT ĐỘNG SẢN
3 nguyên tắc khi bắt đầu công việc mới
Những sai lầm thường gặp khi bắt đầu một công việc mới
Làm gì khi bắt đầu công việc mới?
Bài 2 Bắt đầu làm việc với máy tính
crossorigin="anonymous">
Đã 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.