You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2001/09/20 17:35:43 UTC

DO NOT REPLY [Bug 3752] New: - JspFactory.getDefaultFactory().getPageContext returns always null

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3752

JspFactory.getDefaultFactory().getPageContext returns always null

           Summary: JspFactory.getDefaultFactory().getPageContext returns
                    always null
           Product: Tomcat 4
           Version: 4.0 Final
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: birkl@akt-infosys.de


JspFactory.getDefaultFactory().getPageContext(...) returns null everytime i 
call it.

--- test servlet ---
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.jsp.JspFactory;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.PageContext;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


public class PageContextServlet extends HttpServlet {

  public void doGet(HttpServletRequest request,
                    HttpServletResponse response) throws ServletException,
                                                         IOException {

      PageContext pageContext = JspFactory.getDefaultFactory()
                                           .getPageContext(this,
                                                           request,
                                                           response,
                                                           "/error.html",
                                                           false,
                                                           
JspWriter.DEFAULT_BUFFER,
                                                           true);

      System.out.println("pageContext = " + pageContext);
  }

}
--- end test servlet ---

prints out. "pageContext = null"

or am i just too stupid to get the PageContext the right way ;-) (btw, bea 
weblogic (6.0 final, sp1, sp2 and 6.1) works.