?? text.jsp
字號:
<%@page language="java" contentType="text/html;charset=GBK"%>
<%@page import="java.util.*,java.text.*,java.io.*,oa.main.DealString,oa.main.ParentBean"%>
<html>
<head>
<title></title>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<LINK href=site.css rel=stylesheet>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<%
ParentBean pb = null;
try{
pb = new ParentBean();
DealString ds = new DealString();
String strID = ds.toString((String)request.getParameter("id"));//文章編號
String content = pb.QueryBLOB_JNDI("ARTICLE","iD="+strID,"CONTENT");
//System.out.println("content:"+content);
//對于已經(jīng)發(fā)布的文章進行特殊處理
String confdir = oa.main.ParentBean.FilesPath;
String ip = "http://"+request.getServerName();
String port = request.getServerPort()+"";
if(!port.equals("80"))ip+=":"+port;
content = (new oa.main.DealString()).Replace(content,ip+"/oa/manage/upload/img/","photo.jsp?photo="+confdir+"news/img/");
content = (new oa.main.DealString()).Replace(content,ip+"/oa/manage/upload/appendix/",confdir+"news/appendix/");
out.println(content);
%>
</body>
</html>
<%}finally{if(pb!=null)pb.closeConn();}%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -