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=37410>.
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=37410

           Summary: jsp: implicit object pageContext not AVAILABLE in
                    scriptlet
           Product: Tomcat 5
           Version: Unknown
          Platform: Other
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


I'm working with tomcat version 5.0 and I've written a tag file using scriplet 
inside.
But the implicit object pageContext can be used within the expression language 
and NOT  into the scriptlet.
It works if I use use the implicit object jspContext instead of pageContext.

Anyway if I substitute the jasper library with an older one I can use 
pageContext everywhere and it works fine!

In the new version of tomcat the method doTag() of the tag java class produced 
by jasper library is the following:

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();
    .....

}
  
You can noticed that the _jspx_page_context variable should be called 
pageContext as in the old version.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to