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.
posted 11 years ago
Above file should be tag file becse attribute directive is used.. In tag files pageContext is not available (it is like extending SimpleTagSupport..)