jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank J. Buono" <Frank.Bu...@ExceptionalSoftware.com>
Subject JSP testing, anybody?
Date Tue, 21 Jan 2003 15:29:14 GMT
All:
Has anybody had any luck testing JSP's with Catus/WebLogic 
per the suggested idea in the "Jsp Howto"(See Below)?
Frank
 
public class MyTest extends ServletTestCase
{
    [...]
    
    public void testXXX()
    {
        RequestDispatcher rd = theConfig.getServletContext().
            getRequestDispatcher("/path/to/test.jsp");
        rd.forward(theRequest, theResponse);
    }
    
    public void endXXX(WebResponse)
    {
        // Assert result
        [...]
    }
    
    [...]
}        

	 

Mime
View raw message