tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30140] New: - pageContext implicit variable not available to tagfile tag
Date Fri, 16 Jul 2004 08:38:31 GMT
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: tomcat-dev@jakarta.apache.org
        ReportedBy: bthale@nightwing.com


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: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message