DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30140>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30140

pageContext implicit variable not available to tagfile tag

           Summary: pageContext implicit variable not available to tagfile
                    tag
           Product: Tomcat 5
           Version: 5.0.25
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jasper
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The implicit variable pageContext is not available to a tag implemented as a
tagfile.  Looking at the code generated for the tagfile, it appears the variable
is called jspContext instead.

Here's the first part of the generated doTag() which sets up the implicit
variables for the tag:  

  public void doTag() throws JspException, java.io.IOException {
    PageContext _jspx_page_context = (PageContext)jspContext;
                                                  ^^^^^^^^^^
    HttpServletRequest request = (HttpServletRequest)
_jspx_page_context.getRequest();
    HttpServletResponse response = (HttpServletResponse)
_jspx_page_context.getResponse();
    HttpSession session = _jspx_page_context.getSession();
    ServletContext application = _jspx_page_context.getServletContext();
    ServletConfig config = _jspx_page_context.getServletConfig();
    JspWriter out = jspContext.getOut();
    _jspInit(config);

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to