jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From karthik Guru <karthik_guru2...@yahoo.com>
Subject When w'd JspTestCase's pageContext return null?
Date Fri, 25 Jul 2003 06:55:40 GMT
Hi 

I'm using JspTestCase to tes my JSP. This is my
testXXX method where am accessing pageContext as given
in the example. Am getting a null pointer exception in
that line. Is there any reason for the pageContext
field to be null? 

thanks,
karthik

public void testCompareScenarios() throws
TestcaseException,ServletException,IOException {

System.out.println("testCompareScenarios()");

MarkdownDetails MDDetails = new MarkdownDetails();

MarkdownGroups MDGroups = new MarkdownGroups();

MarkdownScenarios MDScenarios = new
MarkdownScenarios(); 

session.setAttribute("mode", "M"); 

MDDetails.init(request);

session.setAttribute("MDDetails",MDDetails); 

MDGroups.init(request);

session.setAttribute("MDGroups",MDGroups);

session.setAttribute("MDScenarios",MDScenarios); 

String pathToJSP =
"/mdo-app/ScenarioComparison.jsp?selScenarioIDs=2006|2007&selMinDates=2003/Jul/27|2003/Jul/27&selMaxDates=2003/Oct/04|2003/Oct/04&selScenarioIndexes=0|1";

pageContext.forward(pathToJSP);

WTable wTable = (WTable)
session.getAttribute("SCEN_COMP_DATA");

printObject(wTable);

}





__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Mime
View raw message