⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 update.jsp

📁 网上书店jsp开发 购物车 收藏 使用servlet 是小型项目 仅供参考
💻 JSP
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html; charset=gb2312" %> 
<% request.setCharacterEncoding("GB2312"); %> 
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>无标题文档</title>
<style type="text/css">
<!--
.STYLE2 {
	font-size: 36pt;
	font-weight: bold;
	color: #0099FF;
}
.STYLE3 {font-size: 14pt; font-weight: bold; color: #0099FF; }
.STYLE4 {
	font-size: 18px;
	font-weight: bold;
	color: #FF0000;
}
.STYLE6 {font-size: 24pt; font-weight: bold; color: #FF0000; }
-->
</style>
</head>

<body>
	<%
		String id = request.getParameter("id");
		String name = request.getParameter("name");
		String price = request.getParameter("price");
		String author = request.getParameter("author");
		String date = request.getParameter("date");
		String bookman = request.getParameter("bookman");
		
		
	%>
	<script language="javascript">
		function change(){
			document.getElementById("id").disabled=false;
		}
	</script>
<form id="form1" name="form1" method="post" action="doUpdate.jsp" onsubmit="return change()">
  <p align="center" class="STYLE2">图书信息更新</p>
  <p align="left" class="STYLE6">更新前:</p>
  <p align="left" class="STYLE3">索&nbsp;&nbsp;&nbsp;&nbsp;引:
    <input type="text" name="textfield" value="<%=id %>" />
  </p>
  <p align="left" class="STYLE3">书&nbsp;&nbsp;&nbsp;&nbsp;名:
    <input type="text" name="textfield2" value="<%=name %>"/>
  </p>
  <p align="left" class="STYLE3">定&nbsp;&nbsp;&nbsp;&nbsp;价:
    <input type="text" name="textfield3" value="<%=price %>"/>
  </p>
  <p align="left" class="STYLE3">作&nbsp;&nbsp;&nbsp;&nbsp;者:
    <input type="text" name="textfield4" value="<%=author %>"/>
  </p>
  <p align="left" class="STYLE3">出版日期:
    <input type="text" name="textfield5" value="<%=date %>"/>
  </p>
  <p align="left" class="STYLE3">出&nbsp;版&nbsp;社:
    <input type="text" name="textfield6" value="<%=bookman %>"/>
  </p>
  <hr />
  <p><span class="STYLE6">开始更新:&nbsp;</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
  <p class="STYLE3">书&nbsp;&nbsp;&nbsp;&nbsp;名:
    <input type="text" name="textfield7" />
  </p>
  <p class="STYLE3">定&nbsp;&nbsp;&nbsp;&nbsp;价:
    <input type="text" name="textfield8" />
  </p>
  <p class="STYLE3">作&nbsp;&nbsp;&nbsp;&nbsp;者:
    <input type="text" name="textfield9" />
  </p>
  <p class="STYLE3">出版日期:
    <input type="text" name="textfield10" />
  </p>
  <p class="STYLE3">出&nbsp;版&nbsp;社:
    <input type="text" name="textfield11" />
  </p>
  <p class="STYLE3">&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="submit" name="Submit" value="确定" />
    &nbsp;
  <input type="reset" name="Submit2" value="重置" />
  </p>
  <p align="center" class="STYLE4"><a href="index.jsp">首页</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="show.jsp">返回</a></p>
  <p>&nbsp;</p>
</form>
	
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -