| re: testing JSP with catcus
i followed the tutorial http://jakarta.apache.org/cactus/integration/howto_tomcat.html
but when i try to compile a sample application to test (from cactus site)
i get
C:\PROGRA~1\TOMCAT~1.5\WEBAPPS\TEST\WEB-INF\CLASSES>javac TestSampleServlet.java
TestSampleServlet.java:1: package junit.framework does not exist
import junit.framework.Test;
^
TestSampleServlet.java:2: package junit.framework does not exist
import junit.framework.TestSuite;
^
TestSampleServlet.java:4: package org.apache.cactus does not exist
import org.apache.cactus.ServletTestCase;
^
TestSampleServlet.java:5: package org.apache.cactus does not exist
import org.apache.cactus.WebRequest;
^
TestSampleServlet.java:7: cannot find symbol
symbol: class ServletTestCase
public class TestSampleServlet extends ServletTestCase
^
TestSampleServlet.java:14: cannot find symbol
symbol : class Test
location: class TestSampleServlet
public static Test suite()
^
TestSampleServlet.java:19: cannot find symbol
symbol : class WebRequest
location: class TestSampleServlet
public void beginSaveToSessionOK(WebRequest webRequest)
^
TestSampleServlet.java:16: cannot find symbol
symbol : class TestSuite
location: class TestSampleServlet
return new TestSuite(TestSampleServlet.class);
^
TestSampleServlet.java:27: cannot find symbol
symbol : variable request
location: class TestSampleServlet
servlet.saveToSession(request);
^
TestSampleServlet.java:28: cannot find symbol
symbol : variable session
location: class TestSampleServlet
assertEquals("it works!", session.getAttribute("testAttribute"));
^
10 errors
C:\PROGRA~1\TOMCAT~1.5\WEBAPPS\TEST\WEB-INF\CLASSES>
|