Hi,
I am new to Cactus. I am testing the servlet with
Cactus. My Servlet gets the PageContext from the
JSPxFactory. while doing so I am getting a
NullPointerException
at
org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:163)
at
org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:149)
at
org.apache.jasper.runtime.JspFactoryImpl.getPageContext(JspFactoryImpl.java:99)
Here is the Code Snippet which trows the exception
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;charset=ISO-8859-1");
pageContext =
_jspxFactory.getPageContext(servlet, request,
response,"", true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
writer = pageContext.getResponse().getWriter();
My question how do I set the pageContext I have in the
Cactus client side. Please help..
Thanks
gram
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://http://taxes.yahoo.com/
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>