HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: Bean.sample1Bean
at org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepository.java:183)..........................root cause java.lang.ClassNotFoundException: Bean.sample1Bean
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1444)
.............................

解决方案 »

  1.   

    把你的sample1Bean放到WEB-INF/Bean/ 下面
      

  2.   

    应该放在 WEB-INF/classes/Bean/下面
      

  3.   

    <BR><BR>Enter new value:<input name="sample">
    应该是:
    <BR><BR>Enter new value:<input type="text" name="sample">
    假如你的bean放在 WEB-INF/classes/Bean/下面的话应该是没问题的啊!
    还有<form method="post">
    最好改成(假设你这个JSP文件名为a.jsp)
    <form method="post" action="a.jsp">
      

  4.   

    public void setSample(String new Value){
    是不是抄笔误了(String newValue)