Wahaha..Problem solved !
I reinstll J-Run and then choose JSP 1.0 (I guess I choose JSP 0.92 before )
and anything is ok now !
In the install step , it said  user also can change which JSP version you
wanna use after installing . But I can't find where to change the value ,
then I just re-install it .
Maybe someone know how to change can tell me ne !
^_^


===================================

I try to call a javabean in Jsp (like below) , it keep apearing a error
message

com.livesoftware.jsp.JSPServlet:

java.lang.NoSuchMethodError: compBook.chapter1.HelloBean: method
getName()Ljava/lang/String; not found

but It did have getName in HelloBean.java (I attach it ,too ) , I don't know
what wrong and it even drive me to crazy ....
BTW , my platform is window 2000 ,web server IIS 5.0 , pluging Jrun 2.33

***********
*  test.jsp
**********
<%@ page import="compBook.chapter1.HelloBean" %>
<jsp:useBean id="hello" class="compBook.chapter1.HelloBean" scope="request"
/>
<jsp:setProperty name="hello" property="*" />

<html>
<body>
<h1>
Hello,<%=hello.getName()%>
</h1>
</body>
</html>


**************
*HelloBean.java
**************
package compBook.chapter1;
import java.lang.*;
public class HelloBean {
public String name="World";
    public void setName(String name){
      this.name=name;
    }

    public String getName(){
        return name;
    }

}

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to