I. HF page 800 Q:4
1. <%@ attribute name="data" %>
2. <% pageContext.getOut().print(data+data); %>
3. <% getJspContext().getOut().print(data+data); %>
Sentence 3 is ok but sentence 2 is compile error. My question is why the implicit object "pageContext" isn't available there. I think it should be available at any time in a JSP file, just like "out" implicit object.
1. <%@ attribute name="data" %>
2. <% pageContext.getOut().print(data+data); %>
3. <% getJspContext().getOut().print(data+data); %>
Sentence 3 is ok but sentence 2 is compile error. My question is why the implicit object "pageContext" isn't available there. I think it should be available at any time in a JSP file, just like "out" implicit object.