请问这都是啥原因?有没有关联性,还是我软件有问题javaBeanservlet

解决方案 »

  1.   

    没有jsp吧?是不是servlet报了这个JasperException?能不能先最简化这个Register
      

  2.   

    导入一个类的jsp,我啥都没写也出错
    <%@ page language="java" import="java.util.*" contentType="text/html,charset=gb2312" %>
    <%@ page import="library.Users_indicate"   %>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
        <base href="<%=basePath%>">
        
        <title>My JSP 'User_indicate.jsp' starting page</title>
        
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->  </head>  
      <body><br>
        
      </body>
    </html>
    这个是servlet上的jsp
    <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
        <base href="<%=basePath%>">
        
        <title>My JSP 'admin_login.jsp' starting page</title>
        
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">    
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->  </head>
      
           <script type="text/javascript">function changeimg()
    {
    var myimg = document.getElementById("code"); 
    now = new Date(); 
    myimg.src="makeCertPic.jsp?code="+now.getTime();

    </script>
      <body bgcolor="F9A859">
     <form name="Admin_indicate" action="book/src/servlet/Admin_indicate.java"  method="post"> 
      姓名:<input type="text" name="users_name">
      <br>
      密码:<input type="password" name="users_password">
      <br>
      验证:<input type="text" name="yanzhen" maxlength="4">
      <img src="book/WebRoot/image.jsp" width="100" height="20">
      <br>
      <input type="reset" values="重置" >
      <br>
        <input type="submit" values="提交">
        <br>
     </form>
      </body>
    </html>
      

  3.   

    JasperException没有这个错,我截得是全部错误,先点击jsp在提交到servlet