[size=medium]我的具备条件http://localhost :8080已经成功!
但在测试程序时有
package javax.servlet does not exist
import javax.servlet.*;
package javax.servlet.http does not exist
import javax.servlet.http.*;
解决:
如果是Tomcat 5
classpath 中加入 %catalina_home%\common\lib\servlet-api.jar;%catalina_home%\common\lib\jsp-api.jar;
如果是Tomcat 4
classpath 中加入 %catalina_home%\common\lib\servlet.jar;%catalina_home%\common\lib\jsp.jar;[/size]
但在测试程序时有
package javax.servlet does not exist
import javax.servlet.*;
package javax.servlet.http does not exist
import javax.servlet.http.*;
解决:
如果是Tomcat 5
classpath 中加入 %catalina_home%\common\lib\servlet-api.jar;%catalina_home%\common\lib\jsp-api.jar;
如果是Tomcat 4
classpath 中加入 %catalina_home%\common\lib\servlet.jar;%catalina_home%\common\lib\jsp.jar;[/size]