?? text.jsp
字號:
<%@ page language="java" contentType="text/html; charset=GB2312" pageEncoding="GB2312"%>
<%@page import="com.ideas.util.*,java.util.*,com.ideas.bean.DealString"%>
<%
//超時提示
if((String)session.getAttribute("login")==null) {
response.sendRedirect("../session.htm");
}
%>
<jsp:useBean id="myBean1" scope="page" class="com.ideas.bean.artBean"/>
<%if (!myBean1.getMyConnPool()) {
out.println("不能獲取數據庫連接.");
return;
}
//取得當前頁的數據
DealString ds = new DealString();
String time = ds.getDateTime();
String file = (String)request.getParameter("file");
String content = "";
if(!file.equals(""))
{
file = request.getRealPath("/")+"child/"+file;
content = myBean1.getHTML(file);
}
myBean1.releaseMyConnPool();
%>
<html>
<head>
<title></title>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<%
out.println(content);
%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -