有关servlet的问题
我的servlet编译成功了,我把这个类拷到了Tomcat1.4的目录下面
但是我运行Tomcat1.4时怎么说我编译错误啊?
我的servle代码如下:
package test;
import
java.io.IOException;
import java.io.PrintWriter;
import
javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class Test extends HttpServlet {
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws
ServletException,
IOException {
PrintWriter out=response.getWriter();
out.println( " <html> <body> <h1> This is a servlet test. </h1> </body> </html> ");
out.flush();
}
}
我的文件是这样放的:
Tomcat1.4---->
webapps---->
myapp--->
&