Documente Academic
Documente Profesional
Documente Cultură
Subject : JSP
Date :
Duration : 120 minutes
Table : CUSTOMER
Column Name Data type Description Constraints
CustomerID AutoNumber ID code Primary Key
FirstName Text(50)
LastName Text(50)
Addr1 Text(50)
Addr2 Text(50)
Table : USER
Column Name Data type Description Constraints
Id AutoNumber ID code Primary Key
FirstName Text(50)
LastName Text(50)
Email Text(50)
Sex Yes/No
Address Text(50)
:
Insert a new Customer into Customer table
NOTE :
The field name :
FirstName,LastName,Address1 are required field. User will be prompted when sending form
(press Update button) without filling any one of these required fields.
The old value of the previous fields will be saved when performing validation.
Example :
Validation process of required fields will be performed on the server-side using JSP technology, NOT
JavaScript.
Question 3 : Developing JSP Application using JavaBean
1. Create a HTML page named RegistrationForm.html to insert a new user to USER table
EXPLANATION :
Using JavaBean to store all the fields in RegistrationForm.html and re-display it for confirmation :
<tableTagLib:displayTable tableName=User/>
will query USER table and display all data in tabular form