Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Your assignment this week is to build a web application which performs the following: 1. A first JSP where you use a multiple select to
Your assignment this week is to build a web application which performs the following: 1. A first JSP where you use a multiple select to choose up to 5 foods for a recipe from a list of potential ingredients: Select 5 foods for the recipe: \begin{tabular}{l} \hline Cabbage \\ \hline Chorizo \\ Red Onion \\ Olive Oil \\ Garlic \\ Tomato \\ \hline \end{tabular} Check out multi select here for example: https://www.w3schools.com/tags/att select multiple.asp 2. The 'submit button submits the form to a second JSP where the forms parameters are retrieved from the request and displayed in a table: These are the Ingredients vou have chosen 4. Clicking on the 'Cancel' button brings you back to the previous page to select again 5. Clicking on 'Process' submits a form to the processList servlet, where the list of ingredients is retrieved from the session 6. In this servlet a String 'message' is created with an initial value of "Ingredients OK". However, if a specific ingredient is in the list, e.g. Garlic, then the message must be changed to something like "Sorry - can't choose Garlic!" 7. The message is saved as an attribute on the session before the using the redirect method to pass control to a third JSP where the message is retrieved and displayed, e.g. Sorry - can't choose Garlic
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started