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
newUpdate.jsp
Package: shop.rar [view]
Upload User: yatiankong
Upload Date: 2014-05-16
Package Size: 5604k
Code Size: 1k
Category:
Applet
Development Platform:
Java
- <%@ page contentType="text/html;charset=GB2312"%>
- <%@ page import="java.sql.* ,java.util.Date,java.text.SimpleDateFormat"%>
- <%
- request.setCharacterEncoding("GB2312");
- %>
- <jsp:useBean id="newBean" class="MyFly.Bean.newBean" scope="request"/>
- <body bgcolor="#799ae1">
- <%
- String index=request.getParameter("index");
- String topic=request.getParameter("topic");
- String Content=request.getParameter("content");
- String origin=request.getParameter("origin");
- SimpleDateFormat formatter = new SimpleDateFormat ("yyyy-MM-dd");//将显示"1999-10-1 21:03:10"的格式.
- Date currentTime_1 = new Date();
- String appendTime = formatter.format(currentTime_1);
- newBean.setNewID(Integer.parseInt(index));
- newBean.setTopic(topic);
- newBean.setContent(Content);
- newBean.setOrigin(origin);
- newBean.setAppendTime(appendTime);
- if(newBean.update() == 1)
- {
- out.println("<script language=javascript>location.href='newView.jsp';</script>");
- }
- else
- {
- out.println("<Script language=JavaScript>alert('添加失败,请重新添加');JavaScript:history.back();</Script>");
- }
- %>
- </body>