//edit.jsp,通过manage.jsp链接过来的修改信息页面
<%@ include file="articleconn.jsp"%>
<%
String id1=request.getParameter("id").trim();
session.setAttribute("id", id1);
int id=Integer.parseInt(id1);
String queryInfo=" select * from learning where article_id='"+id+"' ";
String updateHits=" update learning set hits=hits+1 where article_id='"+id+"' ";
boolean autoCommit=conn.getAutoCommit();
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>修改信息</title>
<!--meta name="GENERATOR" content="Microsoft FrontPage 4.0"-->
<link rel="stylesheet" href="css/style.css"/>
</head>
<style type="text/css">
<!--
.style2 {
color: #FFFFFF;
font-weight: bold;
}
.style3 {color: #FF0000}
.style5 {color: #0080C0}
-->
</style>
<form method="post" action="saveEdit.jsp" ><%
try{
conn.setAutoCommit(false);
PreparedStatement ps=conn.prepareStatement(updateHits);
int results=ps.executeUpdate();
if(results>0)
{out.println();}
conn.commit();
ps=conn.prepareStatement(queryInfo);
ResultSet rs=ps.executeQuery();
while(rs.next()){
%>
<table width="100%" border="1" cellspacing="1" cellpadding="1">
<tr bordercolor="#FFFFFF" bgcolor="#B5D85E">
<td height="24" colspan="2"><div align="center"><span class="style2">修 改 信 息</span></div></td>
</tr>
<tr bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<td width="14%" height="24"><span class="style5">信息名称</span></td>
<td width="86%"><input type="text" name="title" value="<%=rs.getString("title")%>" size=70></td>
</tr>
<tr bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<td height="23"><span class="style5">链接地址</span></td>
<td><input type="text" name="url" value="<%=rs.getString("url")%>" size=70></td>
</tr>
<tr bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<td height="28"><span class="style5">信息类型</span></td>
<td><input type="text" name="types" value="<%=rs.getString("types")%>" size=70></td>
</tr>
<tr bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<td height="26"><span class="style5">信息说明</span></td>
<td><input type="text" name="content" value="<%=rs.getString("content")%>" size=70></td>
</tr>
<tr bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<td height="29"><span class="style5">信息大小</span></td>






