jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@octo.com>
Subject RE: testing JSP's
Date Sun, 04 Aug 2002 20:37:33 GMT
Hi Christian,

> -----Original Message-----
> From: Christian Wenger [mailto:christianwenger@earthlink.net]
> Sent: 16 July 2002 22:30
> To: cactus-user@jakarta.apache.org
> Subject: testing JSP's
> Hello,
> Does anyone have some advice on how to test the results of an HTTP
> to a JSP?  I think I can
> do it by invoking a servlet that simply routes a request to a JSP.
> in my endXXX() method in my
> test case I should be able to use the HttpUnit WebResponse to examine
> structure of the returned
> HTML.  Correct?  Is there anyway I can get that same HttpUnit
> without first having to
> route the request through a servlet?

Yes, by using HttpUnit directly. Cactus does not provide any added
benefit in that case. Cactus is interesting if you want to assert any
server side code. If you consider your serve side code as a pure black
box, you should probably using HttpUnit directly.

Hope it helps

> Thanks for the help,
> Christian
> --
> To unsubscribe, e-mail:   <mailto:cactus-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:cactus-user-
> help@jakarta.apache.org>

To unsubscribe, e-mail:   <mailto:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>

View raw message