datastatus.jsp
来自「Jive是基于JSP/JAVA技术构架的一个大型BBS论坛系统,这是Jive论坛」· JSP 代码 · 共 80 行
JSP
80 行
<%/** * $RCSfile: dataStatus.jsp,v $ * $Revision: 1.3 $ * $Date: 2002/08/09 22:44:37 $ */%><%@ page import="java.io.*, java.util.*, java.text.*, com.jivesoftware.util.*, com.jivesoftware.forum.*, com.jivesoftware.forum.database.*, com.jivesoftware.forum.util.*" errorPage="error.jsp"%><%@ include file="global.jsp" %><% // Permission check if (!isSystemAdmin) { throw new UnauthorizedException("You don't have admin privileges to perform this operation."); } // Get a handle on a DbForumFactory object (we can do that because we're // the system admin: DbForumFactory dbForumFactory = (DbForumFactory)(((ForumFactoryProxy)forumFactory).getProxiedForumFactory()); // Get a DbDataExport instance: DbDataExport exporter = DbDataExport.getInstance(dbForumFactory); // Get the "type" parameter - tells us which status to look up: String type = ParamUtils.getParameter(request,"type"); // If nothing is running, redirect back to data.jsp: if ("export".equals(type)) { if (!exporter.isRunning()) { response.sendRedirect("data.jsp"); return; } } else if ("import".equals(type)) { /* if (!importer.isRunning()) { response.sendRedirect("data.jsp"); return; } */ }%><%@ include file="header.jsp" %><meta http-equiv="refresh" content="4; URL=dataStatus.jsp?type=<%= type %>"><p><% // Title of this page and breadcrumbs String title = "Data Import & Export"; String[][] breadcrumbs = { {"Main", "main.jsp"}, {title, "data.jsp"} };%><%@ include file="title.jsp" %><% if ("export".equals(type)) { %> <% if (exporter.isRunning()) { %> <font size="-1"> Export currently running... Please be patient (this page will refresh in 4 seconds). Once an export is finished, you will go back to the main import/export page. </font> <% } %><% } %><%@ include file="footer.jsp" %>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?