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

📄 edit.jsp

📁 学生档案管理系统 eclipse开发 数据库用的是SQL Sever 详细见里面的说明
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%
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>
    <meta http-equiv="Content-Language" content="zh-cn">
    <base href="<%=basePath%>">
    
    <title>修改个人信息</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link rel="stylesheet" type="text/css" href="styles.css">
  </head>
    <jsp:include page="inc/head.html"/>
  <body>
<jsp:useBean id="up" class="Beans.EditBean">
</jsp:useBean>
  <% 
  	try
	{
		String type1=(String)session.getValue("type");
		int t=Integer.parseInt(type1);
		if (t<1) response.sendRedirect("Login.jsp");
	}
	catch(Exception e)
	{
			response.sendRedirect("Login.jsp");
	}
  	try
	{
		String id=(String)session.getValue("id");	
		up.select(id);	
	}
	catch(Exception e)
	{
			response.sendRedirect("Login.jsp");
	}
	
	
%>

    <table width="100%" height="100%">
		<tr>
			<td width="25%"> </td>
			<td width="75%">
			<form name="form1" method="post" action="upedit.jsp" id="form1">
			<table width="100%">
				<tr height ="30">
					<td align="right">输入新密码</td>
					<td>

						<p><input type="text" name="pwd" size="20" value=<%=up.getPwd()%>>
					</td>
				</tr>
								<tr height ="30">
					<td align="right">性别</td>
					<td>男<input type="radio" value="m" name="sex"<%	 try {if (up.getSex().equals("m")) out.print("checked");}	catch(Exception e)	{	} %>>
						女<input type="radio" value="f" name="sex" <%try {if (up.getSex().equals("f")) out.print("checked");}	catch(Exception e)	{	}  %>>
					</td>
				</tr>
								<tr height ="30">
					<td align="right">出生日期</td>
					<td><input type="text" name="bday" size="20" value=<%=up.getBday()%>></td>
				</tr>
								<tr height ="30">
					<td align="right">从哪里来</td>
					<td><input type="text" name="from" size="65" value=<%=up.getFrom()%>></td>
				</tr>
				</tr>
								<tr height ="30">
					<td align="right"><input type="submit" name="Button3" value="修改 " id="Button3" class="button" style="float: right" />
				</td>
				</tr>
				
				</table>

				
				</form>
			</td>
		</tr>
	</table>
    <br>
  </body>
</html>

⌨️ 快捷键说明

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