直接调试一个单个JSP页面看看,
Jsp1.jsp可能是你调用的javabean有错误,
Jsp2.jsp中不能找到你的javabean

解决方案 »

  1.   

    先编译javabean
    在运行Jsp1.jsp看看
      

  2.   

    javabean编译通不过
    你的程序肯定 有问题
      

  3.   

    package jsp;public class Jsp1Bean {
      private String sample = "Start value";
      //Access sample property
      public String getSample() {
        return sample;
      }
      //Access sample property
      public void setSample(String newValue) {
        if (newValue!=null) {
          sample = newValue;
        }
      }
    }
    这是javabean
    <%@ page contentType="text/html; charset=GBK" %>
    <html>
    <head>
    <title>
    Jsp1
    </title>
    </head>
    <jsp:useBean id="Jsp1BeanId" scope="session" class="jsp.Jsp1Bean" />
    <jsp:setProperty name="Jsp1BeanId" property="*" />
    <body>
    <h1>
    JBuilder Generated JSP
    </h1>
    <form method="post">
    <br>Enter new value   :  <input name="sample"><br>
    <br><br>
    <input type="submit" name="Submit" value="Submit">
    <input type="reset" value="Reset">
    <br>
    Value of Bean property is :<jsp:getProperty name="Jsp1BeanId" property="sample" />
    </form>
    </body>
    </html>这是jsp,有错吗?