Exception creating bean of class kissjava.UserForm: java.lang.ClassCastException

解决方案 »

  1.   

    Userform.java这个类没有从ActionForm继承
      

  2.   

    谢谢啊!你们真厉害啊!我都看不出来。
    顺便请教一下,怎么看java的错误,判断是哪儿出错了呢!那么多错误,我都看不过来了。。
      

  3.   

    Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Errortype Exception reportmessage Internal Server Errordescription The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.exception javax.servlet.ServletException: Exception creating bean of class kissjava.UserForm: java.lang.ClassCastException
     at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)
     at org.apache.jsp.createUser$jsp._jspService(createUser$jsp.java:519)JSP的异常,很不好看,一般你只要看到这里,大概就知道是错误是发生在哪里,出了什么错误。
       最常见的异常有这里出现的类型转换出错(java.lang.ClassCastException)和空指针异常(java.lang.NullPointerException)
      

  4.   

    问题又来啦。Apache Tomcat/4.0.6 - HTTP Status 500 - No action instance for path /createUser could be createdtype Status reportmessage No action instance for path /createUser could be createddescription The server encountered an internal error (No action instance for path /createUser could be created) that prevented it from fulfilling this request.具体是什么问题呀。看不懂呀!再次感谢楼上的各位呀!
      

  5.   

    struts-config.xml中,有没有配置/createUser 对应的Action