TAILIEUCHUNG - Dynamic Web Pages using JSP - Lab Deliverable 14

Giới thiệu về và 1. Mở rộng exercise1 để hiển thị số dư trong tài khoản nhập vào bởi người sử dụng trong trang hiển thị tài khoản Marko. Ngoài ra, sử dụng thẻ để đậu và logic hiển thị các thông tin. Giải pháp: Tên tập tin cần thiết cho giải pháp này là: | Lab Deliverable 14 Introduction to logic and bean tags Part II 1. Extend exercisel to display the balance in the account entered by a user in Marko Account display page. In addition use bean and logic tags to display the information. Solution Filenames required for this solution are 1. 2. DisplayActionF ava 3. sp @ taglib uri WEB-INF prefix html @ taglib uri tags struts-bean prefix bean @ taglib uri tags struts-logic prefix logic html head title Marko Display Screen TITLE head body center h1 Marko Account Display h1 center bean header id ho name user-agent B You are using B ho 9 String accNo accNo accountNo if accNo null b br br br br center bean write name displayForm property accountDetails center br br br b 9- center Introduction to logic and bean tags Ver 2005 Aptech Limited 1 FORM method post Please enter the account number for which u wish to see the balance. br input type text name accountNo br input type submit value Show Details FORM center body html Enter the code in Notepad and save the file as in T OMCAT_HOME webapps Session8. A class file needs to be created for retrieving the balance for a particular account number from the database. Follow the steps to create a class file to retrieve data from database. package MARKO import . public class DisplayActionForm extends ActionForm private String accountDetails private String accNo public void setAccountNo String acNo accNo acNo public String getAccountDetails try accountDetails table tr TH Account Number TH TH Balance Amount TH tr connection j jdbc odbc userdb statement String query_car select from userDB where accountNo accNo res query_car if accountDetails tr td .

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.