Sử dụng Mô hình và ActionForms 1. Viết chương trình nhập vào các chi tiết đăng ký mới để các cơ sở dữ liệu. Ngoài ra, tạo ra một DSN để kết nối các trang JSP với cơ sở dữ liệu. Giải pháp: Các tập tin được sử dụng để chạy ứng dụng này là: 1. 2. 3. 4. 5. 6. 7. 8. | Lab Deliverable 11 Using Models and ActionForms Part II 1. Write a program to input the new registration details to the Database. In addition create a DSN to connect the JSP page to the database. Solution The files used to run this application are 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. html head title Marko Bank title head body center H1 Welcome to Marko Bank Home page H1 center br br br br a href Register New user a br a href Sign in user a br body html Enter the code in Notepad and save the file as index. j sp in TOMCAT_HOME webapps marko. @ page language java contentType text html charset utf-8 @ taglib uri WEB-INF prefix html HTML HEAD TITLE New User Registration form TITLE HEAD CENTER h1 New User Registration form h1 CENTER hr noshade noshade p Enter information into the fields below. Your entries will be displayed when you Submit the form. br Use Models and ActionForms Ver 2005 Aptech Limited 1 This is just to demonstrate the Struts html tags. The information that you enter is discarded. p p required field p hr noshade noshade html form action processSimple p Enter Username you wish to use br input type text name name size 40 maxlength 50 p p Enter Password br input type password name password size 40 maxlength 50 p p Select the type of account you want to open br select name accType option value savings Savings option option value current Current option select p p input type checkbox name referral Do you have a referral in this bank p p What banking facility inspired you to open account in this bank br INPUT TYPE radio NAME inspired value Phone banking Phone banking br INPUT TYPE radio NAME inspired value ATM Card ATM Card. br INPUT TYPE radio NAME inspired value Debit Card Debit Card br INPUT TYPE radio NAME inspired value Online Banking Online .