【JSP开源代码栏目提醒】:网学会员鉴于大家对JSP开源代码十分关注,论文会员在此为大家搜集整理了“addOrder.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="cart" class="com.Cart" 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
{
String orderName=(String)request.getParameter("orderName");
String totalPrice=(String)request.getParameter("totalPrice");
cart.addOrder(orderName,totalPrice);
}
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>
上一篇:
AddNewsBoardok.jsp
下一篇:
关于听觉掩蔽的语音增强算法及DSP实现