Question
Convert standard JSP bean tags to EL 1. Download and open the ch08_ex1_email project from the course Canvas page. Program files can be downloaded from
Convert standard JSP bean tags to EL
1. Download and open the ch08_ex1_email project from the course Canvas page.
Program files can be downloaded from this zip: https://drive.google.com/open?id=0B5HjVVkWJYBIQkpTQmtLRmJVU2s
2. Run the application. Then, enter data for a user, click the Join button, and click the Return
button. Note how the users data is displayed on both pages.
3. Open the index.jsp and thanks.jsp files. Then, convert the standard JSP tags to EL. Note how the
EL is shorter and easier to read than the standard JSP tags.
4. Run the application. It should work the same as it did before
Use EL to work with a collection and an initialization parameter
5. Open the EmaiListServlet class. Note that it stores the current date as a request attribute. Note also that it stores an ArrayList of User objects as a session attribute.
6. Open the web.xml file. Note that it does not allow scripting for the current application. Note also that the custserv@murach.com email address is stored as a context initialization parameter named custServEmail.
7. Open the thanks.jsp file. Then, complete the code at the end of the page so it displays the current date, the first two users in the ArrayList of User objects, and the customer service email.
8. Run the application. Then, enter data for a user, click on the Return button, and note how the users data is displayed on the first page.
Use EL to specify scopt
9. Open the thanks.jsp file and explicitly specify the scope for the user attribute and the currentDate attribute.
10. Test the application to make sure that it still works correctly.
Program files can be downloaded from this zip: https://drive.google.com/open?id=0B5HjVVkWJYBIQkpTQmtLRmJVU2s
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