【JSP开源代码栏目提醒】:网学会员在JSP开源代码频道为大家收集整理了addProduce.jsp提供大家参考,希望对大家有所帮助!
<%@ page contentType="text/html; charset=GBK" language="java" %>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<%@ page import="java.sql.*,com.*,java.util.*,java.sql.*" %>
<jsp:useBean id="produceClass" class="com.ProduceClass" scope="page">
<jsp:setProperty name="produceClass" property="*"/>
</jsp:useBean>
<jsp:useBean id="produceBean" class="com.ProduceBean" scope="page"/>
<HTML>
<style type="text/css">
<!--
.style4 {color: #FF0000}
.style6 {
color: #FF0000;
font-family: "幼圆";
font-size: 18px;
}
-->
</style>
<HEAD>
<TITLE>add userinfo into table </TITLE>
</HEAD>
<BODY>
<p>
<%
try
{
produceBean.setProduce(produceClass);
produceBean.addProduce();
}
catch(Exception e)
{
e.printStackTrace();
}
%>
</p>
<p>
<SCRIPT language=JavaScript type=text/JavaScript>
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</SCRIPT>
</p>
<TABLE cellSpacing=0 cellPadding=0 width=748 align=center
background=../registerImage.files/bj_x.gif border=0>
<TBODY>
<TR>
<TD height=1></TD>
</TR>
</TBODY>
</TABLE>
<p> </p>
<p align="center" class="style4"><span class="style6">添加成功!</span></p>
<p align="center"> </p>
<p align="center"> </p>
<p> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"><BR>
<STRONG></STRONG></p>
</body>
</html>
上一篇:
addPopedomUser.jsp
下一篇:
中小学生社会教育市场调查综述