Question: 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 whichperforms the following: 1. A first JSP where you use a multiple

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!