<% @ page contentType = " text/html; charset=gb2312 " language = " java " import = " java.sql.* " %> < html > < head > < title > 新闻 </ title > < link rel = " stylesheet " type = " text/css " href = " news.css " > </ head > < jsp:include page = " top.jsp " flush = " true " /> <% @ include file = " ../conn.jsp " %> <% request.setCharacterEncoding( " gb2312 " ); String id = request.getParameter( " id " ); String sql = " Select * From szstmz.zhishi where id=' " + id + " ' " ; ResultSet rs = stmt.executeQuery(sql); if (rs.next()) ... { %> <table width="998" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#000000" bordercolordark="#FFFFFF"> <tr bgcolor="#FAD185"> <td height=30 align=center bgcolor="#00345A"><b><span class="STYLE1"><font color="#ffffff"><%=rs.getString("title")%></font> </span></b></td> </tr> <tr> <td height="344" valign=top> <p><span class="STYLE1"><%=rs.getString("content").replaceAll(" ","<br>")%> </span> </td><% } rs.close(); stmt.close(); conn.close(); %> </ tr > </ table > < jsp:include page = " copyright.jsp " flush = " true " /> </ b > < ul > </ ul > </ html > rs.getString("content").replaceAll("/n ","<br>")