当前位置: 代码迷 >> Java Web开发 >> 在线急等!求大侠解决。关于jsp在线连接网下的页面乱码有关问题
  详细解决方案

在线急等!求大侠解决。关于jsp在线连接网下的页面乱码有关问题

热度:8062   发布时间:2013-02-25 21:17:11
在线急等!!!求大侠解决。关于jsp在线连接网上的页面乱码问题
<%@ page language="java"
import="java.util.*,edu.jmi.SharePlatForm.bean.*,edu.jmi.SharePlatForm.dao.*,java.sql.*"
contentType="text/html; charset=utf-8"%>

<%
response.setHeader("Cache-Control", "no-store"); //HTTP 1.1
response.setHeader("Pragma", "no-cache"); //HTTP 1.0
response.setDateHeader("Expires", 0); //prevents caching at the proxy server
%>

<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="skin/css/base.css">
<LINK href="css/bbs.css" type="text/css" rel="stylesheet">
<LINK href="css/view.css" type="text/css" rel="stylesheet">
<LINK href="css/foot.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="fckeditor/fckeditor.js"></script>
  window.onload = function(){
var tables = document.getElementsByTagName('table');
for(var i=0; i<tables.length; i++){
<!-- 弹出层开始 -->
<div id="light" class="white_content">
<div class="close">
<a href="javascript:void(0)" onclick="hide('light')"> 关闭</a>
</div>
<div class="con">
<table class="datagrid1">
<tr>
<th>
编号
</th>
<th>
相关解释
</th>
<th width="80">
资料来源
</th>
</tr>
<%
ToolsTOString t = new ToolsTOString();
try {
String s = MyThreadPool
.getStringByPath("http://so.csdn.net/search?q="
+ topic.getTopicTitle()
+ "&sort=&rt=h&t=thread");
String[] urlTitle = t.getUrlTitle(s);
int i = 0;
for (String r : urlTitle) {
i++;
%>
<tr>
<td><%=i%>.
</td>
<td><%=r%></td>
<td width="80">
<a href="http://www.csdn.net" target="_blank">CSDN论坛</a>
</td>
</tr>
<%
}
} catch (Exception e) {
e.printStackTrace();
}
%>

<tr height="30">
<td>
&nbsp;
</td>
<td align="center">
<a
href="http://so.csdn.net/search?q=<%=topic.getTopicTitle()%>&sort=&rt=h&t=thread"
target="_blank">查看更多关于"<%=topic.getTopicTitle()%>"的资料...</a>
</td>
<td width="80">
&nbsp;
</td>
</tr>
</table>
</div>
</div>
<div id="fade" class="black_overlay"></div>
<!-- 弹出层结束 -->

<div id="main">
<%@include file="head.jsp"%>
<div
style="height: 90px; width: 950px; position: relative; padding-left: 10px; height: 24px; line-height: 24px; background: #EDF3FD">
  相关解决方案
本站暂不开放注册!
内测阶段只得通过邀请码进行注册!