日期:2014-05-18  浏览次数:20789 次

在myeclipsez中调用javabean的问题!
我在src里边些了一个连接和操作数据库的bean   connDB.java,在webroot下面的register_ok.jsp调用它出现了这个错误:org.apache.jasper.JasperException:   /bookshop/WebRoot/register_ok.jsp(2,20)   equal   symbol   expected
现给出两个jsp和javabean的代码:
register.jsp:

<%@   page   language= "java "   import= "java.util.* "   pageEncoding= "GBK "%>
<link   rel= "stylesheet "   type= "text/css "   href= "../css/table.css "/>
<!DOCTYPE   HTML   PUBLIC   "-//W3C//DTD   HTML   4.01   Transitional//EN ">
<html>
    <head>
     
        <title> 用户注册 </title>
<table   border= "0 "   cellpadding= "2 "   cellspacing= "1 "   align= "center "   width= "800 ">
<form   action= "register_ok.jsp "   name= "registerform "   method= "post "   onSubmit= "return   checkform(this) ">
<tr>
<td   align= "right "> 用户名: </td>
<td> <input   type= "text "   name= "userName "   size= "40 "> </td>
</tr> <br>
<tr>
<td   align= "right "> 真实姓名: </td>
<td> <input   type= "text "   name= "trueName "   size= "40 "> </td>
</tr>
<tr>
<td   align= "right "> 密&nbsp;&nbsp;码: </td>
<td> <input   type= "password "   name= "password "   size= "20 "> </td>
</tr>
<tr>
<td   align= "right "> 确认密码: </td>
<td> <input   type= "password "   name= "password_2 "   size= "20 "> </td>
</tr>
<tr>
<td   align= "right "> 性&nbsp;&nbsp;别: </td>
<td> <input   name= "sex "   type= "radio "   checked> 男 <img   src= "../image/boy.gif ">
            <input   type= "radio "   name= "sex "> 女 <img   src= "../image/girl.gif "> </td>
</tr>
<tr>
<td   align= "right "> 生&nbsp;&nbsp;日: </td>
<td> <input   type= "text "   name= "birthday "   size= "20 "> </td>
</tr>
<tr>
<td   align= "right "> 电&nbsp;&nbsp;话: </td>
<td> <input   type= "text "   name= "tel "   size= "20 "> </td>
</tr>
<tr>
<td   align= "right "> Q&nbsp;&nbsp;Q: </td>
<td> <input   type= "text "   name= "QQ "   size= "20 "> </td>
</tr>
<tr>
<td   align= "right "> Email: </td>
<td> <input   t