首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

不知道哪错了,请问,大概接不到值!帮帮忙

2012-01-24 
不知道哪错了,请教,求助!!大概接不到值!!帮帮忙!ryadd.jsp页面代码:formaction ryaddseve.jsp method

不知道哪错了,请教,求助!!大概接不到值!!帮帮忙!
ryadd.jsp页面代码:

<form   action= "ryaddseve.jsp "   method= "post "   name= "form1 "   target= "_blank ">
      <table   width= "500 "   border= "1 "   align= "center "   cellpadding= "0 "   cellspacing= "0 "   bordercolor= "#ECE9D8 ">
        <tr>
            <td   colspan= "2 "> <div   align= "center "> 添加员工 </div> </td>
        </tr>
        <tr>
            <td   width= "29% "> <div   align= "right "> 员工帐号: </div> </td>
            <td   width= "71% "> <input   name= "txt_ryid "   type= "text "   id= "txt_ryid ">
            * </td>
        </tr>
        <tr>
            <td>
                <div   align= "right "> 密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码: </div> </td>
            <td> <input   name= "txt_pass "   type= "password "   id= "txt_pass ">
            * </td>
        </tr>
        <tr>
            <td>
                <div   align= "right "> 验证密&nbsp;码: </div> </td>
            <td> <input   name= "txt_pass1 "   type= "password "   id= "txt_pass1 ">
            * </td>
        </tr>
        <tr>
            <td>
                <div   align= "right "> 姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名: </div> </td>
            <td> <input   name= "txt_ryname "   type= "text "   id= "txt_ryname "   size= "8 "   maxlength= "4 "   onkeyup= "value=value.replace(/[   -~]/g, ' ') "   onkeydown= "if(event.keyCode==13)event.keyCode=9 ">
            * </td>
        </tr>
        <tr>
            <td>
                <div   align= "right "> 性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别: </div> </td>
            <td> <select   name= "txt_sex "   id= "txt_sex ">
                    <option   selected> 请选择~~ </option>
                    <option   value= "男 "> 男 </option>


                    <option   value= "女 "> 女 </option>
            </select>
            * </td>
        </tr>
        <tr>
            <td>
                <div   align= "right "> 年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;龄: </div> </td>
            <td> <input   name= "txt_age "   type= "text "   id= "txt_age "   size= "2 "   maxlength= "2 "   onKeyUp= "value=value.replace(/[^\d]/g, ' ')   "onbeforepaste= "clipboardData.setData( 'text ',clipboardData.getData( 'text ').replace(/[^\d]/g, ' ')) ">
            * </td>
        </tr>
        <tr>
            <td>
                <div   align= "right "> 联系电话: </div> </td>
            <td> <input   name= "txt_phone "   type= "text "   id= "phone3 "   size= "15 "   maxlength= "15 "   onkeydown= "onlyNum(); ">             </td>
        </tr>
        <tr>
            <td>
                <div   align= "right "> 职&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;务: </div> </td>
            <td> <select   name= "txt_job "   id= "txt_job ">
                <option> 请选择~~ </option>
                <option   value= "职务 "> 职务 </option>
            </select>
            * </td>
        </tr>
        <tr>
            <td>
                <div   align= "right "> 工&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;资: </div> </td>
            <td> <input   name= "txt_sal "   type= "text "   id= "txt_sal "   size= "20 "   maxlength= "20 "   onKeyUp= "value=value.replace(/[^\d]/g, ' ')   "onbeforepaste= "clipboardData.setData( 'text ',clipboardData.getData( 'text ').replace(/[^\d]/g, ' ')) ">
            * </td>
        </tr>
        <tr>
            <td>
                <div   align= "right "> 工作时间: </div> </td>
            <td>                 <p>


    <input   name= "txt_hirdate "   type= "text "   id= "txt_hirdate ">
&nbsp;(格式为yyyy-mm-dd)* </p>                 </td>
        </tr>
        <tr>
            <td>
                <div   align= "right "> 部门&nbsp;ID&nbsp;: </div> </td>
            <td> <select   name= "txt_bmid "   id= "txt_bmid ">
                    <option   selected> 请选择~~ </option>
                    <option   value= "部门 "> 部门 </option>
                                    </select>
            * </td>
        </tr>
        <tr>
            <td>
                <div   align= "right "> 工作地区: </div> </td>
            <td> <select   name= "txt_areaat "   id= "select ">
                <option> 请选择~~ </option>
                <option   value= "地区 "> 地区 </option>
            </select>            
            *             </td>
        </tr>
        <tr>
            <td   valign= "top ">
                <div   align= "right "> 备&nbsp;&nbsp;&nbsp;   &nbsp;&nbsp;注: </div> </td>
            <td> <textarea   name= "txt_memo "   cols= "25 "   rows= "8 "   id= "txt_memo "> </textarea> </td>
        </tr>
       
        <tr>
            <td   colspan= "2 "> <table   width= "250 "   border= "0 "   align= "center ">
                    <tr>
                        <td> <div   align= "right ">
                                <input   type= "button "   name= "Submit "   value= "提交 "   onClick= "checkform() ">
                        </div> </td>
                        <td> <input   type= "reset "   name= "Submit2 "   value= "重置 "> </td>


                    </tr>
            </table> </td>
        </tr>
    </table>
</form>

ryaddseve.jsp页面代码:


<jsp:useBean   id= "bib "   scope= "request "   class= "bean.rybean "   type= "bean.rybean ">
<jsp:setProperty   name= "bib "   property= "ryid "   param= "txt_ryid "/>
<jsp:setProperty   name= "bib "   property= "pass "   param= "txt_pass "/>
<jsp:setProperty   name= "bib "   property= "ryname "   param= "txt_ryname "/>
<jsp:setProperty   name= "bib "   property= "sex "   param= "txt_sex "/>
<jsp:setProperty   name= "bib "   property= "age "   param= "txt_age "/>
<jsp:setProperty   name= "bib "   property= "phone "   param= "txt_phone "/>
<jsp:setProperty   name= "bib "   property= "job "   param= "txt_job "/>
<jsp:setProperty   name= "bib "   property= "sal "   param= "txt_sal "/>
<jsp:setProperty   name= "bib "   property= "hirdate "   param= "txt_hirdate "/>
<jsp:setProperty   name= "bib "   property= "bmid "   param= "txt_bmid "/>
<jsp:setProperty   name= "bib "   property= "areaat "   param= "txt_areaat "/>
<jsp:setProperty   name= "bib "   property= "memo "   param= "txt_memo "/>
</jsp:useBean>
<script   language= "JavaScript ">
<%
int   flag=bib.ryAdd(con);
if(flag==0)
{
out.println( "alert( '对不起,人员增加失败! '); ");
out.println( "history.back(); ");
}
else   if(flag==2)
{
out.print( "alert( '该人员ID或姓名已经存在,请重新填写! '); ");
out.print( "history.back(); ");
}
else
{
response.sendRedirect( "ry.jsp ");
}
%>
</script>

提示错误是:


org.apache.jasper.JasperException:   ??
org.apache.jasper.runtime.JspRuntimeLibrary.internalIntrospecthelper(JspRuntimeLibrary.java:405)
org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(JspRuntimeLibrary.java:352)
org.apache.jsp.ryaddseve_jsp._jspService(ryaddseve_jsp.java:102)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


[解决办法]
org.apache.jasper.runtime.JspRuntimeLibrary.internalIntrospecthelper

应该是的jsp有问题,编译不通过

热点排行