Review Questions

http://www.smart-soft.com

1: Of the following, which occurs at tranlation time and which occurs at request time:

  Answer

2: Of the following, which results in an additional http response:

  Answer

3: Which is faster, jsp:forward or response.sendRedirect(..)? Why?   Answer

4: Imagine a simple, 2 line jsp called page1.jsp. The first line of page1.jsp sets a cookie. The second line does a jsp:forward to page2.jsp. Will page2.jsp be able to read the cookie that was set by page1.jsp? Why?   Answer