Server Side Programming
fhdcaip
CSET4100 Server Side Programming
Assignment 4
Review chapter 7 and chapter 20.
1. Open ch20_ex1_download project in the ex_starts folder.
2. Modify the web.xml to turn off the three test filter filters and turn on the
LogResponsesCookiesFilter filter.
3. Note how the filter works with the cookies.
4. Modify the LogResponsesCookiesFilter. The filter you implemented needs to add an additional
cookie using the filter’s name as the cookie name. The content of this cookie will be your name.
5. Using Project ch07_ex1_download as a template, add the filter you developed above to this new
project.
6. Make the filter to work with DownloadServlet. Note that you may need to modify the web.xml
to get the filter to work in this project.
7. The project should print out the list of cookies to client web browser using view_cookies.jsp (or
any other jsp file of your choice) which includes the filter cookie.
8. After test working, build the project to produce .war file as shown in previous assignments.
Submit a .war file of your working application to blackboard that display the cookie added by the filter
you designed (30). No point will be assigned without the cookie added by the new filter you designed
since the book servlet display all the other cookies by default. Include modified
LogResponsesCookiesFilter.java for grading (10).