请问<a href="/DelzsdbServlet?id=<%=rs.getInt("id")%>"/>这么写这么错了呢?
web.xml的配置:<servlet><servlet-name>DelzsdbServlet</servlet-name><servlet-class>xgh.ser...
web.xml的配置:
<servlet>
<servlet-name>DelzsdbServlet</servlet-name>
<servlet-class>xgh.servlet.DelzsdbServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>DelzsdbServlet</servlet-name>
<url-pattern>/DelzsdbServlet</url-pattern>
</servlet-mapping>
rs的由来:
<%
String sql = "select * from login ";
conn conn = new conn();
ResultSet rs = conn.query(sql);
while(rs.next()){
%>
如果没有错误的话 为什么点到这个连接的时候会出现404找不到DelzsdbServlet的错误呢?
HTTP Status 404 - /DelzsdbServlet
type Status report
message /DelzsdbServlet
description The requested resource (/DelzsdbServlet) is not available. 展开
<servlet>
<servlet-name>DelzsdbServlet</servlet-name>
<servlet-class>xgh.servlet.DelzsdbServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>DelzsdbServlet</servlet-name>
<url-pattern>/DelzsdbServlet</url-pattern>
</servlet-mapping>
rs的由来:
<%
String sql = "select * from login ";
conn conn = new conn();
ResultSet rs = conn.query(sql);
while(rs.next()){
%>
如果没有错误的话 为什么点到这个连接的时候会出现404找不到DelzsdbServlet的错误呢?
HTTP Status 404 - /DelzsdbServlet
type Status report
message /DelzsdbServlet
description The requested resource (/DelzsdbServlet) is not available. 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询