0% found this document useful (0 votes)
51 views3 pages

Assignment Guideline 1

The document provides guidelines for an assignment to create a JavaServer Faces (JSF) web application for a car rental system. It outlines pages for the index, rental information, car details, rental form, confirmation, and failure. It describes JSF managed beans to store and retrieve car and rental data from classes, validate form inputs, and process storing the rental data to a database and session on confirmation.

Uploaded by

vuminhhoa1588
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views3 pages

Assignment Guideline 1

The document provides guidelines for an assignment to create a JavaServer Faces (JSF) web application for a car rental system. It outlines pages for the index, rental information, car details, rental form, confirmation, and failure. It describes JSF managed beans to store and retrieve car and rental data from classes, validate form inputs, and process storing the rental data to a database and session on confirmation.

Uploaded by

vuminhhoa1588
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Assignment 5/6 (1/2)

Assignment Guideline 1
Applications Name JSF Configuration File Confirm Information Error messages Faces root page List car pages Input rental Information Form Bean JSF managed Bean: car Information Supported class for Car JSF managed Bean: car Information Collection JSF managed Bean: rental Information
Supported class for Rental
2

Assignment Guideline 1 (cont)

Assignment Guideline 1 (cont)


index.jsp Forward to rental.jsp rental.jsp JSF Form shows car Information Get car information from CarBean Transfer param carID on Rental link Click Rental link, the rentalForm.jsp is show JSF managed bean: carBean.jsp Cars information: id, name, seatAmount, status Supported Cars information class Load cars information to collection data to view on dataTable

Assignment Guideline 1 (cont)


rentalForm.jsp
JSF Form with JSF controls Confirm to show information confirm.jsp Cancel to go the rental.jsp in the

JSF managed bean: rentalBean


Information: custName, custAddress, custYear, custPhone, rentalType, carID Checking constraint with Name (at least 5 chars), Address (at least 10 chars), Phone (number and at least 8 digits) Process data Temp in session Process storing data to DB in confirm.jsp and set status to not available in Car table rentalDB is a supported class Support store rental information to session

Assignment Guideline 1 (cont)


fail.jsp Show message as figure confirm.jsp JSF Form shows rental Information Submit to store all information into DB Go Back to rentalForm.jsp/ rental.jsp

You might also like