add the tools.jar to your classpath or copy it to the tomcat/common/lib

解决方案 »

  1.   

    这样做了,不过还不行,效果一样
    这样的错误信息
    type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception javax.servlet.ServletException: date/nowtime
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:810)谢谢关注
      

  2.   

    是不是需要在server.xml里边需要改动什么东西啊?
      

  3.   

    是最简单的,作测试的。
    index.jsp<%@  page  contentType="text/html;charset=gb2312"%>    
    <%@  page  import="java.sql.*"%>   
    <jsp:useBean id="NowTime" class="date.nowtime" scope="page"/><html>    
    <body>    
        <%out.println("javabean例子");
    out.println(NowTime.getDate());%>
    </body>    
    </html>WEB-INF/classes/date中nowtime.java:package date;
    import java.util.*;
    public class  nowtime{private String str="现在时间"; public String getDate() 
    {
    return str+(new java.util.Date()).toLocaleString();
    }
    }如果web-inf/classes/date里边有nowtime.class就可以正常显示。。
      

  4.   

    请问  umbrella1984(迈克尔·老鬼)
    在web.xml里边加入什么?
    谢谢