The requested resource (/userlogin1/UserLoginServlet) is not available.
web.xml文件:<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEweb-appPUBLIC"-//SunMicrosyste...
web.xml文件:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>UserLoginServlet</servlet-name>
<servlet-class>com.login.UserLoginServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>UserLoginServlet</servlet-name>
<url-pattern>/UserLoginServlet</url-pattern>
</servlet-mapping>
</web-app>
jsp代码:
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录页</title>
</head>
<body>
<form action="UserLoginServlet" method="post">
<table align="center">
<tr>
<td>用户名:</td>
<td><input type="text" name="loginname"></td>
</tr>
<tr>
<td>密 码:</td>
<td><input type="password" name="loginpwd"></td>
</tr>
<tr>
<td align="center"><input type="submit" value="提交"><input
type="reset" value="重置"></td>
</tr>
</table>
</form>
</body>
</html>
已经弄了一天了,还是会报错,求大神指点。 展开
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>UserLoginServlet</servlet-name>
<servlet-class>com.login.UserLoginServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>UserLoginServlet</servlet-name>
<url-pattern>/UserLoginServlet</url-pattern>
</servlet-mapping>
</web-app>
jsp代码:
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录页</title>
</head>
<body>
<form action="UserLoginServlet" method="post">
<table align="center">
<tr>
<td>用户名:</td>
<td><input type="text" name="loginname"></td>
</tr>
<tr>
<td>密 码:</td>
<td><input type="password" name="loginpwd"></td>
</tr>
<tr>
<td align="center"><input type="submit" value="提交"><input
type="reset" value="重置"></td>
</tr>
</table>
</form>
</body>
</html>
已经弄了一天了,还是会报错,求大神指点。 展开
2个回答
Storm代理
2023-08-29 广告
2023-08-29 广告
"StormProxies是全球大数据IP资源服务商,其住宅代理网络由真实的家庭住宅IP组成,可为企业或个人提供满足各种场景的代理产品。点击免费测试(注册即送1G流量)StormProxies有哪些优势?1、IP+端口提取形式,不限带宽,I...
点击进入详情页
本回答由Storm代理提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询