<% @pagecontentType = " text/html;charset=gb2312 " language = " java " import = " java.sql.* " %> < html > < head > < title > 新闻 </ title > < linkrel = " stylesheet " type = " text/css " href = " news.css " > </ head > < jsp:includepage = " top.jsp " flush = " true " /> <% @includefile = " ../conn.jsp " %> <% request.setCharacterEncoding( " gb2312 " );Stringid = request.getParameter( " id " );Stringsql = " Select*Fromszstmz.zhishiwhereid=' " + id + " ' " ;ResultSetrs = stmt.executeQuery(sql); if (rs.next()) ... {%><tablewidth="998"border="1"align="center"cellpadding="0"cellspacing="0"bordercolorlight="#000000"bordercolordark="#FFFFFF"><trbgcolor="#FAD185"><tdheight=30align=centerbgcolor="#00345A"><b><spanclass="STYLE1"><fontcolor="#ffffff"><%=rs.getString("title")%></font></span></b></td></tr><tr><tdheight="344"valign=top><p><spanclass="STYLE1"><%=rs.getString("content").replaceAll(" ","<br>")%></span></td><%} rs.close();stmt.close();conn.close(); %> </ tr > </ table > < jsp:includepage = " copyright.jsp " flush = " true " /> </ b > < ul > </ ul > </ html > rs.getString("content").replaceAll("\n ","<br>")