Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
addtopictodbwe.jsp
Package: JSP-OA.rar [view]
Upload User: jhtang88
Upload Date: 2014-01-27
Package Size: 28528k
Code Size: 1k
Category:
Jsp/Servlet
Development Platform:
Java
- <%@ 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.*"
- import = "com.redmoon.forum.Leaf"
- 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();
- }
- catch (ErrMsgException e) {
- out.print("-" + SkinUtil.LoadString(request, "info_op_fail") + e.getMessage());
- }
- if (isSuccess) {
- boardcode = Topic.getCurBoardCode();
- MsgDb md = Topic.getMsgDb(Topic.getId());
- if (md.getCheckStatus()==MsgDb.CHECK_STATUS_NOT) {
- out.println(SkinUtil.LoadString(request, "res.label.forum.addtopic", "need_check"));
- }
- else
- out.print("+" + SkinUtil.LoadString(request, "info_op_success"));
- }
- }
- %>