最后 20分了 求个问题解决办法 分是少了点
orderSearch.jsp
<script language= "JavaScript ">
function RgTest() {
if(document.order.orderId.value== " ") {
window.alert( "请输入查询订单号! ");
document.order.orderId.focus();
return false;
}
return true;
}
</script>
<body>
<%@ include file= "adminlink.jsp " %>
<center>
<h1 class= "STYLE1 "> 订单查询 </h1>
<form action= "orderSearch.jsp " method= "post " name= "orderId ">
<table border= "1 " bgcolor= "#286D52 ">
<tr> <td width= "120px " align= "right "> 请输入订单号: </td> <td align= "left " width= "300px "> <input type= "text " name= "orderId "> <input type= "submit " value= "查询 " onClick= "return RgTest() "/> </td> </tr>
</table>
<%@ include file= "orderSearchResult.jsp "%>
</form>
orderSearchResult.jsp
<jsp:useBean id= "dataConnection " scope= "page " class= "org.me.dataConnection ">
</jsp:useBean>
<body>
<%
String orderId=request.getParameter( "orderId ");
Connection con=dataConnection.getConnection();
try{
Statement stmt=con.createStatement();
ResultSet rs=stmt.executeQuery( "select * from form where orderId= ' "+orderId+ " ' ");
if(rs.next()){
String userId=trans(rs.getString( "userId "));
&n