Question: JSP Component: openFortuneCookie.jsp In the text box below write the code that would complete the requirements for the missing functionality in openFortuneCookie.jsp to generate dynamic


JSP Component: openFortuneCookie.jsp In the text box below write the code that would complete the requirements for the missing functionality in openFortuneCookie.jsp to generate dynamic content. There are two missing components For part 1 the code should display a user name read from a "theUser bean if a one exists and is valid. If no valid bean is found a default, "Friend', is displayed. For part 2 the code should display a fortune text read from a "theFortune" bean if a one exists and is valid. If no valid bean is found a default, "hazy, ask again later", is displayed You may use scriptlets or expression language. "Comments are provided in the body of the code to indicate the required functionality.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
