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提交是:
为什么在index.jsp的form表单提交的时候会报java.lang.NoClassDefFoundError: aaa/testServlet (wrong name: testServlet)这个错呢,求教各位高手!要怎么解决这个问题?