Explain error and exception and how jsp handles them


Assignment

1. Write a JSP program to collect the following details and display:

a. Name
b. Age
c. Favorite breakfast
d. Favorite (soft) drink
E. Favorite Restaurant

2. Sessions and Cookies are important in HTTP Request and HTTP Response sequence.

3. Write a JSP program which connects to a database (MyMySQLDB/4036, uid=root;pwd=admin) called Fish_Of_Australia. Select all the rows from a table under the heading of Fish_Category (Fish_ID, Fish_Name, Fish_Description, fish_Picture and date_of_catch) and display in browser.

4. Write a short on java bean with an example. Declare the following variables and create getters and setters for them. Customer_Name, Customer_Age, Customer_Address and Customer_ID).Create a constructor as well.

5. Explain error and exception and how JSP handles them.

6. Discuss in detail JSP Life cycle. Use diagram.

7. Create a JSP program for Loan Calculator. It calculates both Simple and Compound interest.

a. Create a .html file with link to Loan Calculator Page

b. In Loan Calculator page, it takes:

i. Amount
ii. Interest in %
iii. Allows user to select either Simple or Compound
iv. Period

c. Upon collecting all the data, the user clicks on ‘Submit' button

d. Then the result will be displayed with appropriate statement.

e. Display exception messages when:

i. User enter number below ‘0'
ii. User enters character data other than number.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Explain error and exception and how jsp handles them
Reference No:- TGS01547700

Now Priced at $35 (50% Discount)

Recommended (98%)

Rated (4.3/5)