⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addtopictodbwe.jsp

📁 这是论坛原代码,希望大家能好好看看,说明需要的太多了吧
💻 JSP
字号:
<%@ page contentType="text/html;charset=utf-8"
import = "java.io.File"
import = "cn.js.fan.web.SkinUtil"
import = "cn.js.fan.util.ErrMsgException"
import = "com.redmoon.forum.MsgMgr"
import = "java.util.Calendar"
%><jsp:useBean id="form" scope="page" class="cn.js.fan.security.Form" /><%
boolean isSuccess = false;
String privurl = "";
String boardcode = "";

boolean cansubmit = false;
com.redmoon.forum.Config cfg = new com.redmoon.forum.Config();
int interval = cfg.getIntProperty("forum.addMsgInterval");
int maxtimespan = interval;
try {
	cansubmit = form.cansubmit(request, "addtopic", maxtimespan);// 防止重复刷新	
}
catch (ErrMsgException e) {
	out.println(e.getMessage());
	return;
}

if (cansubmit) {
	MsgMgr Topic = new MsgMgr();
	try {
		isSuccess = Topic.AddNewWE(application, request);
		//privurl = Topic.getprivurl();
		//boardcode = Topic.getCurBoardCode();
	}
	catch (ErrMsgException e) {
		out.print("-" + SkinUtil.LoadString(request, "info_op_fail") + e.getMessage());
	}
	if (isSuccess) {
		out.print("+" + SkinUtil.LoadString(request, "info_op_success"));
	}
}
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -