求为什么myeclipse运行servlet出现404错误,但运行jsp时可以运行,是不是xml配置错误,xml怎样配置才是正确的,求帮忙
http://blog.csdn.net/mr_pang/article/details/46764831
<?xml version="1.0" encoding="UTF-8"?>
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
This is the description of my J2EE component
This is the display name of my J2EE component
lin
com.lin.lin
lin
/lin/lin
index.jsp
我的xml哪里配置错误了
你的链接地址配置错误了
<?xml version="1.0" encoding="UTF-8"?>
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
This is the description of my J2EE component
This is the display name of my J2EE component
lin
com.lin.lin
lin
/lin/lin
index.jsp
web.xml文件里检查有没有设置正确,还有Servlet的类名有没有写错,开头要大写。