Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Head First 2nd Edition Ch7 #14 Mock Exam P.341

 
Felix Li
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would like to know if the correct answer for C should be:

javax.servlet.ServletContext
javax.servlet.jsp.JspWriter
javax.servlet.http.HttpServletRequest
javax.servlet.http.HttpServletResponse
javax.servlet.http.HttpSession

instead of:

javax.servlet.ServletContext
javax.servlet.jsp.JspWriter
javax.servlet.ServletRequest
javax.servlet.ServletResponse
javax.servlet.http.HttpSession

Thanks
 
Rufus Addis
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd agree with you, as the implicit request / response objects in JSP have to be of the http variety!

Worth submitting as an errata:

http://oreilly.com/catalog/9780596516680/errata/

Rufus.
 
Felix Li
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Rufus, I just did.
 
Ranil Liyana Arachchige
Ranch Hand
Posts: 71
Hibernate Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I think the answers are correct, the mock exam question asks for the types of the jsp implicit objects,so in that case , request , response are types of javax.servlet.http.HttpServletRequest , javax.servlet.http.HttpServletResponse respectively. But those are protocol dependent sub types of the super type javax.servlet.ServletRequest , javax.servlet.ServletResponse. please refer to the JSP 2.0 spec section 1-41. it clearly explains that.

hope this would be helpful

regards,
Ranil
 
Felix Li
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interesting, you are right Ranil.

Thanks for clearing up.
 
Ranil Liyana Arachchige
Ranch Hand
Posts: 71
Hibernate Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no problem
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic