[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

compilation exception



I'm getting an error while trying to use a bean in a servlet:

Method getName() not found in class java.lang.Object
out.print(__valueOf( hello.getName() ));

where 'hello' is supposed to be an instance of HelloBean, not Object..

My jsp file looks like:

<%@ import = "HelloBean" %>
<BEAN NAME-"hello" CLASS="HelloBean" 
    INTROSPECT="yes" CREATE="yes" SCOPE="session">
</BEAN>

<html><head>
<title>
<% = hello.getName() %>
</title>
</head>
<body>
<P>bean test
</body>
</html>

Are beans broken in 0.9.6?