title: Eclipse Tomcat integration: useBean class attribute [class] is invalid
body: <p>I'm using Eclipse Juno (Java EE) and Tomcat 7.0. I've successfully connected Tomcat and Eclipse with this tutorial: <a href="http://www.mulesoft.com/tomcat-eclipse" rel="nofollow">http://www.mulesoft.com/tomcat-eclipse</a></p>
  
  <p>JSTL and *.jsp files are working well within Eclipse and Tomcat but I can't use JavaBeans.</p>
  
  <p>I store my JavaBeans in /WebContent/WEB-INF/classes/com/form.</p>
  
  <p>In the *.jsp File (which is in /WebContent)  I use the following code:</p>
  
  <pre><code>&lt;%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %&gt;
  &lt;%@ page import="com.form.*" %&gt;
  ...
  &lt;jsp:useBean id="input" class="com.form.Input"/&gt;
  </code></pre>
  
  <p>Input.java:</p>
  
  <pre><code>package com.form;
  
  public class Input {
  
      private String firstName;
      private String lastName;
      private String gender;
  
      private boolean vegetarian;
  
      public Input() {
          this.firstName = new String();
          this.lastName = new String();
          this.gender = new String();
      }
  ...
  </code></pre>
  
  <p>When I run this application I get the following error message:</p>
  
  <pre><code>The value for the useBean class attribute com.form.Input is invalid
  </code></pre>
  
  <p>I don't want to post the whole code but you can download the complete Eclipse project here: <a href="https://dl.dropbox.com/u/6454333/BeanForm.zip" rel="nofollow">https://dl.dropbox.com/u/6454333/BeanForm.zip</a></p>
  
  <p>I hope you can help me.</p>
  
  <p>Thank you and good bye</p>
  
  <p>konze</p>