📄 testparam.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<jsp:useBean id="testJspBean" class="testJsp.testJspBean" scope="page"/>
<%--testJsp为文件夹,里面包含testJspBean.class ,testJsp放在Root/WEB-INF/classes里, Root/WEB-INF里还要有testJspBean.java--%>
<jsp:setProperty name="testJspBean" property="*"/>
<!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=gb2312">
<title>DreamWeaver JSP</title>
<style type="text/css">
<!--
.style9 {
font-size: x-large;
font-family: "黑体";
}
.style11 {font-family: "黑体"; font-size: 24px; }
-->
</style>
</head>
<body>
<h1 align="center">Hello JSP!!
</h1>
<div align="left"></div>
<form name="form1" method="get" action="">
<table width="266" height="138" border="0" align="center">
<tr>
<td width="117"><span class="style11">用户名: </span></td>
<td width="120"><input name="userName" type="text" class="style9" size="6" maxlength="256" ></td>
</tr>
<tr>
<td><span class="style11">密 码:</span></td>
<td><input name="pwd" type="text" class="style9" size="6" ></td>
</tr>
<tr>
<td height="26"><div align="center">
<input name="test" type="submit" value="提交">
</div></td>
<td><div align="center">
<input name="Submit" type="reset" value="重置">
</div></td>
</tr>
</table>
</form>
<hr width="50%"></p>
<table width="258" border="6" align="center">
<tr>
<td width="107" height="24">用户名为:</td>
<td width="135"><%=request.getParameter("userName")%></td>
</tr>
<tr>
<td height="22">密 码:</td>
<td><%=request.getParameter("pwd")%></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -