1.servlet书写顺序错误
现象:
The content of element type "servlet" must match "(icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),init-param*,load-on-startup?,run-as?,security-role-ref*)".
原因:
要求Servlet的书写顺序必须是
FilenameListServlet
FilenameListServlet
FilenameListServlet
exam.FilenameListServlet
而myeclipse自动生成的书写顺序是
FilenameListServlet
FilenameListServlet
FilenameListServlet
exam.FilenameListServlet
解决方法:
按web-app_2_3.dtd要求的书写顺序即可。
阅读(1206) | 评论(0) | 转发(0) |