PDA

Click to See Complete Forum and Search --> : Beans on Tomcat Question


gigsvoo
Feb 8th, 2002, 08:35 PM
Hi there,

I had this error when I tried to run my beans on a Tomcat 4 server:

The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.

and my JSP file is this:

<html>
<head>
<title>
Using JavaBeans from JSP
</title>
</head>
<body>
<jsp:useBean id="staff" class="com.visualbuilder.beans.Employee"/>
<jsp:setProperty name="staff" property="name" value="James Brown"/>
Welcome to the company, <jsp:getProperty name="staff" property="name"/>
, please visit VisualBuilder.com to get more out of life!
</body>
</html>

where my folder to stores the bean file is like this:

oot\Web-inf\classes\com\visualbuilder\beans\Employee.class

anything wrong? why it does work?

hgroot
Feb 15th, 2002, 05:59 AM
Maybe a manual get/set property works:

...
<% staff.setName("James brown"); %>
...
<%= staff.getName() %>