I'm reading Head First
Servlets and
JSP (2nd edition) and found what looks like a typo, but I want to make sure I'm not missing anything. I couldn't find any corrections in the
errata.
On p.510 in the answer to the first question, it says that the request and response implicit objects are available in a Tag File just like in a JSP (yup that makes sense), but that,
You don't have a ServletContext, though--a Tag File uses a JspContext instead of a ServletContext.
I think this should read,
"You don't have a
PageContext, though--a Tag File uses a JspContext instead of a
PageContext"
Testing this out, when I try accessing the application implicit object in a Tag File, everything works fine.
But when I try accessing an implicit object called
pageContext, it gives me an error. However, accessing an implicit object called
jspContext works OK. Thanks.