“test.jsp": java.lang.NoSuchMethodException: 
调用了testbean中不存在的方法!

解决方案 »

  1.   

    不是这个问题,好象是我的weblogic配置的问题,tomcat中就不会出现这样的问题,关键是
    "test.jsp": java.lang.NoSuchMethodException: com.borland.jbuilder.webserverglue.weblogic.jsp.NadaJavac does not define 'public static void compile(String[])'
    这是什么意思?
      

  2.   

    jsp代码很简单:
    <%@ page contentType="text/html; charset=GBK" %>
    <html>
    <head>
    <title>
    Jsp1
    </title>
    </head>
    <jsp:useBean id="Jsp1BeanId" scope="session" class="test.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>bean的代码:
    package test;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;
            }
        }
    }
     
    我把代码都删除了,再编译还是原来的错误,不知道是为什么
      

  3.   

    Jsp1Bean 怎么没有构造器?可以这样用吗?
      

  4.   

    你能把你的QQ号告诉我吗,我想当面问你
    我写的代码是在jbuilder7中自动生成的
      

  5.   

    同样的代码我在jbuilder5中就编译过去了
    因为我应的tomcat
    所以我觉的是weblogic的问题
      

  6.   

    忘了告诉你,JSP文件不用编译的!
      

  7.   

    肯定是你的Weblogic没有配置好.你有没有将类文件放在相应的目录下呀,如果有的话,你将Weblogic自动生成的临时文件都删掉,然后重起weblogic试一下,如果还是不行的话,只有一种可能,你没有把类文件考到相应的目录下。