Question: Develop a web application named hw2. The application must meet the following requirements. The purpose of this application is to take users book order request.
Develop a web application named hw2. The application must meet the following requirements. The purpose of this application is to take users book order request. When the app is deployed, it must display a book order form page, which is a JSP page (see Fig. 1). Let the user choose one or more books in the book list. Provide at least 4 books in the list. Make your own book list (Fig. 1 is just an example). Each book must be displayed with its cover image, title, price, and a checkbox named Add to Cart. Do not download any image into your project. Instead, provide a link to each image. Make sure the user fills both text boxes with proper information, otherwise the Place Order button will not take it to the next page. If all the information is properly entered, clicking on Place Order button will cause browser to display the thank you page, which is another JSP (see Fig. 2). This page must summarize the information entered by the user, and allow user to return back to the book order form page by clicking on the Return button. Make sure the thank you page displays only the books selected by the user. If the user clicked on Place Order button without selecting any book in the list, the browser must re- display the book order form page with the following message (see Fig. 3): Please select at least one book. Create .css file to define the style of the web pages. Use your own style (e.g., font type, size, color, ...). Also, there should be at least one servlet to process the request from the browser, and at least one JavaBean class to store the information entered by the user. Make sure web.xml properly configures the URL mapping for the servlet.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
