Hello,
I downloaded Cactus very recently. I tell you it is really a
wonderful piece of software written for enterprise network. I could
test it for servlets.
Now I have got starting problems with testing JSPs with Cactus.
The example file that was provided along with Cactus distribution
contained a file in -
sample/src/share/org/apache/org/apache/commons/cactus/sample/unit -
called TestJspTestCase.java .
I use cactus 1.1 .
Now according to what I have interpreted, it contains a method called
testOut which uses the out object of type JspWriter to write
something and again in endOut an assertion is made if we get the
right value.
Now my question is if I have a test.jsp something like this.
<!doctype html public "-//w3c/dtd HTML 4.0//en">
<html>
<head><title>Hello World</title></head>
<body>
<% out.print("Hello World!"); %>
</body>
</html>
The file mentioned is the classic Hello World printing program.
Now I want to test on the server side if actually the writer prints
the Hello World! . Now how would I associate a JSP file to a JSP Test
case in a servlet container ? I use the Tomcat v4 rc-2 container .
Thanks for helping me.
=====
Thanks.
Rakesh Bhalla.
=====
Thanks.
Rakesh Bhalla.
__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/