title: error: The value for the useBean class attribute user.CompileClasss is invalid
body: <p>I am getting a <strong>The value for the useBean class attribute user.CompileClasss is invalid</strong> These are my files:</p>
  
  <p><strong>index.jsp</strong></p>
  
  <pre><code>&lt;%@ page session="true" %&gt;
  &lt;%@ page import="user.CompileClass" %&gt;
  
  &lt;jsp:useBean id="user1" class="user.CompileClasss" scope="session" /&gt;
  &lt;jsp:setProperty name="user1" property="*"/&gt;
  &lt;html&gt;  
    &lt;body&gt;
      &lt;FORM METHOD=POST ACTION="Result.jsp"&gt;
  What's your name? &lt;INPUT TYPE=TEXT NAME=uname SIZE=20&gt;&lt;BR&gt;
  What's your e-mail address? &lt;INPUT TYPE=TEXT NAME=email SIZE=20&gt;&lt;BR&gt;
  What's your age? &lt;INPUT TYPE=TEXT NAME=age SIZE=4&gt;
  &lt;P&gt;&lt;INPUT TYPE=SUBMIT&gt;
  &lt;/FORM&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>CompileClass.java</strong></p>
  
  <pre><code>package user;
  
  public class CompileClass {
      public String uname;
      public String mail;
      public int age;
  
      /*public CompileClass(String uname, String mail, int age) {
          this.uname=uname;
          this.mail=mail;
          this.age=age;
      }*/ 
      public CompileClass(){
      }
  
  
  
      public String returnname(){
          return uname;
      }
      public String   returnmail(){
          return mail;
      }
      public int returnage(){
          return age;
      }
  
  
  /*public void main()
  {
  
  
  }*/
  }
  </code></pre>
  
  <p><strong>Result.jsp</strong></p>
  
  <pre><code>&lt;jsp:useBean id="user1" scope="session" class="user.CompileClass" /&gt;
  &lt;html&gt;
  
    &lt;body&gt;
     You entered:&lt;BR&gt;
  
  Name: &lt;%= user1.returnname() %&gt;  &lt;BR/&gt; 
  Email: &lt;%= user1.returnmail() %&gt;&lt;BR&gt;
  Age: &lt;%= user1.returnage() %&gt;&lt;BR&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Any help?</p>