没有合适的资源?快使用搜索试试~ 我知道了~
首页jsp与Servlet跳转
jsp与Servlet跳转
![](https://csdnimg.cn/release/wenkucmsfe/public/img/star.98a08eaa.png)
jsp与Servlet跳转jsp与Servlet跳转jsp与Servlet跳转,图形并茂
资源详情
资源推荐
![](https://csdnimg.cn/release/download_crawler_static/3848370/bg1.jpg)
页面:Index.jsp
Input.jsp
Comrm.jsp
Result.jsp
Error.jsp
服务:InputServerlet
ConrmServerlet
ResultServerlet
代码:
Index.jsp
<%@ page language= import= pageEncoding=%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()
+":"+request.getServerPort()+path+"/";
%>
![](https://csdnimg.cn/release/download_crawler_static/3848370/bg2.jpg)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'index.jsp' starting page</title>
<meta http-equiv= content=>
<meta http-equiv= content=>
<meta http-equiv= content=>
<meta http-equiv= content= !"!#>
<meta http-equiv= content=$$$>
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<center>
<h1>
<a href=%%%&'>INPUT</a>
</h1>
</center>
</body>
</html>
Conrm:
<%@ page language= import= pageEncoding=%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()
+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'input.jsp' starting page</title>
<meta http-equiv= content=>
<meta http-equiv= content=>
<meta http-equiv= content=>
<meta http-equiv= content= !"!#>
![](https://csdnimg.cn/release/download_crawler_static/3848370/bg3.jpg)
<meta http-equiv= content=$$$>
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<style type=%>
<!--
.STYLE1 {
color: (;
font-weight: );
font-size: #*;
}
-->
</style>
</head>
<body>
<%
request.setCharacterEncoding("utf-8");
String username = request.getParameter("username");
String password = request.getParameter("password");
%>
<p align= class='+,- >请修改用户名和密码</p>
<form id=. name=. method=
action=%%%/'>
<table width=#01 border= align=>
<tr>
<td width= *">用户名;</td>
<td width=" *><label>
<input name= type= id= value="<
%=username %>" size=# maxlength=# />
</label></td>
</tr>
<tr>
<td>密码:</td>
<td><label>
<input name= type= id= value="<%=password
%>" size=# maxlength=# />
</label></td>
</tr>
<tr>
<td><label>
<input type=) name=) id=) value=
提交
/>
</label></td>
![](https://csdnimg.cn/release/download_crawler_static/3848370/bg4.jpg)
<td><label>
<input type= name= id= value=
重置
/>
</label></td>
</tr>
</table>
</form>
<p> </p>
</body>
</html>
Input:
<%@ page language= import= pageEncoding=%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()
+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'input.jsp' starting page</title>
<meta http-equiv= content=>
<meta http-equiv= content=>
<meta http-equiv= content=>
<meta http-equiv= content= !"!#>
<meta http-equiv= content=$$$>
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<style type=%>
<!--
.STYLE1 {
color: (;
font-weight: );
font-size: #*;
}
-->
</style>
</head>
<body>
![](https://csdnimg.cn/release/download_crawler_static/3848370/bg5.jpg)
<p align= class='+,- >请输入用户名和密码</p>
<form id=. name=. method=
action=%%%23'>
<table width=#01 border= align=>
<tr>
<td width= *">用户名;</td>
<td width=" *><label>
<input name= type= id= size=#
maxlength=# />
</label></td>
</tr>
<tr>
<td>密码:</td>
<td><label>
<input name= type= id= size=#
maxlength=# />
</label></td>
</tr>
<tr>
<td><label>
<input type=) name=) id=) value=
提交
/>
</label></td>
<td><label>
<input type= name= id= value=
重置
/>
</label></td>
</tr>
</table>
</form>
<p> </p>
</body>
</html>
Result:
<%@ page language= import= pageEncoding=%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()
+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
剩余22页未读,继续阅读
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://profile-avatar.csdnimg.cn/8d4b3416cde64b9bae5ef83cbbaad5b9_sevenisgood.jpg!1)
sevenisgood
- 粉丝: 0
- 资源: 40
上传资源 快速赚钱
我的内容管理 收起
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![](https://csdnimg.cn/release/wenkucmsfe/public/img/voice.245cc511.png)
会员权益专享
最新资源
- 京瓷TASKalfa系列维修手册:安全与操作指南
- 小波变换在视频压缩中的应用
- Microsoft OfficeXP详解:WordXP、ExcelXP和PowerPointXP
- 雀巢在线媒介投放策划:门户网站与广告效果分析
- 用友NC-V56供应链功能升级详解(84页)
- 计算机病毒与防御策略探索
- 企业网NAT技术实践:2022年部署互联网出口策略
- 软件测试面试必备:概念、原则与常见问题解析
- 2022年Windows IIS服务器内外网配置详解与Serv-U FTP服务器安装
- 中国联通:企业级ICT转型与创新实践
- C#图形图像编程深入解析:GDI+与多媒体应用
- Xilinx AXI Interconnect v2.1用户指南
- DIY编程电缆全攻略:接口类型与自制指南
- 电脑维护与硬盘数据恢复指南
- 计算机网络技术专业剖析:人才培养与改革
- 量化多因子指数增强策略:微观视角的实证分析
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![](https://img-home.csdnimg.cn/images/20220527035711.png)
![](https://img-home.csdnimg.cn/images/20220527035711.png)
![](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![](https://csdnimg.cn/release/wenkucmsfe/public/img/green-success.6a4acb44.png)