TAILIEUCHUNG - Dynamic Web Pages using JSP - Lab Deliverable 16

Struts Validator Framework 1. Tạo một trang Web với hai lĩnh vực: Tên và số an. Các trang nên cho phép người dùng tìm kiếm cho số lượng an ninh hoặc tên, vào một trong các lĩnh vực. Hiển thị số bảo mật của tên được nhập trong lĩnh vực Tên. Tương tự như vậy, các trang cung cấp tên sau khi nhập số bảo mật. Giải pháp: danh sách các tập tin, yêu cầu cho ứng dụng này là như sau: 1. 2. 3. 4 | Lab Deliverable 16 Struts Validator Framework Part II 1. Create a Web page with two fields Name and security number. The page should allow the user to search for the security number or the name on entering either of the fields. Display the security number of the name that is entered in the Name field. Similarly the page should provide the name after entering the security number. Solution The list of files required for this application is as follows 1. 2. 3. 4. 5. 6. 7. 8. 9. Update the index. j sp file in TOMCAT_HOME webapps example index . j sp sp @ taglib uri WEB-INF tlds prefix html html head title Online Banking with Marko title head body font size 1 Marko font br hr width 100 noshade true 149 html link forward search Search for Account html link br body html The output appears as shown in Figure . Struts Validator Framework Ver 2005 Aptech Limited 1 Figure Index Page Enter the code in a Notepad and save the file as in TOMCAT_HOME webapps example . sp @ taglib uri WEB-INF tlds prefix bean @ taglib uri WEB-INF tlds prefix html @ taglib uri WEB-INF tlds prefix logic html head title Account Search title head body font size 1 Online Banking with Marko font br hr width 100 noshade true html errors html form action sp table tr td align right bean message key td td html text property name td tr tr 2 Ver 2005 Aptech Limited JSP and Struts td align right bean message key td td html text property ssNum xxx-xx-xxxx td tr tr td td td html submit td tr table html form logic present name searchForm property results hr width 100 size 1 noshade true bean size id size name searchForm property results logic equal name size value 0 center font color red b No

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.