Results 1 to 2 of 2

Thread: Beans on Tomcat Question

  1. #1

    Thread Starter
    Lively Member gigsvoo's Avatar
    Join Date
    Oct 2000
    Location
    Malaysia
    Posts
    109

    Talking Beans on Tomcat Question

    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?

  2. #2
    Member hgroot's Avatar
    Join Date
    Dec 2001
    Location
    Amsterdam
    Posts
    52
    Maybe a manual get/set property works:

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width