test是工程名,testServlet.class是放在tomcat\webapps\test\WEB-INF\classes\aaa包下的,index.jsp是放在tomcat\webapps\test\bbb包下的。
servlet的web.xml配置是:
testServlet
aaa.testServlet
testServlet
/url
index.jsp页面的form提交是:
form提交的action写成${pageContext.request.contextPath}/testServlet
编译文件有么,提示没有找到编译文件了
把你web.xml文件贴出来看看