Chapter 12

5
Chapter 12 Controlling the Structure of Generated Servlets: The JSP page Directive

description

Chapter 12. Controlling the Structure of Generated Servlets: The JSP page Directive. Exercise 1. Design an JSP exchange 1. USD to VND 2. ERROR to VND 3. Japanese JEN to VND 4. Singapore dollar to VND http://service.tuoitre.com.vn/transweb/tygia.htm. Exercise 1 - Interface. Exercise 2. - PowerPoint PPT Presentation

Transcript of Chapter 12

Page 1: Chapter 12

Chapter 12

Controlling the Structure of Generated Servlets: The JSP

page Directive

Page 2: Chapter 12

Exercise 1

Design an JSP exchange 1. USD to VND2. ERROR to VND3. Japanese JEN to VND4. Singapore dollar to VNDhttp://service.tuoitre.com.vn/transweb/tygia.htm

Page 3: Chapter 12

Exercise 1 - Interface

Page 4: Chapter 12

Exercise 2

Upgrade Execise1 add function for user can select VND -> to another foreign currency or foreign currency to VND

Page 5: Chapter 12

Interest money Design a JSP to calculate Interest money of a bank

account.Input: Bank Deposits, Number of Months,Type of accountThere are 4 type of account:- No fixed limit-time ( 0.3 % per month)- 1 month (0.4 % per month)- 3 months (0.6 % per month)- 6 months (0.9 % per month)Output: Interest money and total money received