This content has been marked as final.
Show 2 replies
-
1. Re: Value for the useBean class attribute is invalid -- why?
monocongo Apr 11, 2005 12:21 PM (in response to monocongo)The problem was that the class was missing a no-args constructor, and hence wasn't a valid JavaBean.
--James -
2. Re: Value for the useBean class attribute is invalid -- why?
spayeur Mar 29, 2006 4:20 AM (in response to monocongo)Getting the same error, but I've got a default constructor...
org.apache.jasper.JasperException: /index3.jsp(497,0) The value for the useBean class attribute forum.GetChildMessages is invalid.
Setting errorOnUseBeanInvalidClassAttribute to false yields a ClassNotFoundException.
---- GetChildMessages.java ----
...
public class GetChildMessages implements Serializable {
private int parentid;
public GetChildMessages() {
parentid = 0;
}
...
---- index3.jsp ----
...
<jsp:useBean id="gmk" class="forum.GetChildMessages" scope="request" >
...
Used to work in Tomcat 4.1, but I'm now
using Tomcat 5.0.28, Apache 2.0.43, Win 2000.