title: JSP, "User cannot be resolved to a type"
body: <p>I am working through Murach's Java Servlets and JSPs
  I am in chapter 4, when I load http:// button is pressed I get the error.  Can anyone see what is causing the problem, I have all the files stored in tomcat/webapps/MailList.  I have gone through this code for hours and cannot find any syntax causing the problem, just thinking another set of eyes would probably catch it.  Or someone could explain it, any help is greatly appreciated, this is my first day messing with Servlets/JSPs and tomcat.</p>
  
  <p>The <strong>join_email_list.html</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;Chapter 4 - Email List application&lt;/title&gt;
      &lt;/head&gt;
      &lt;body background="C:\Users\Public\Pictures\Sample Pictures\Lighthouse.jpg" &gt;
          &lt;h1&gt;Join the Murach's mailing list&lt;/h1&gt;
          &lt;p&gt;To join the Murach's mailing list, enter your name and email address below.&lt;br&gt;
              Then, click n the submit to recieve special offers.&lt;/p&gt;
          &lt;form action="show_email_entry.jsp" method="get"&gt;
              &lt;table cellspacing="5"&gt;
                  &lt;tr&gt;
                      &lt;td align="right" &gt;First name&lt;/td&gt;
                      &lt;td&gt;&lt;input type="text" name="firstName"&gt;&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td align="right"&gt;Last name&lt;/td&gt;
                      &lt;td&gt;&lt;input type="text" name="lastName"&gt;&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td align="right"&gt;email address&lt;/td&gt;
                      &lt;td&gt;&lt;input type="text" name="emailAddress"&gt;&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td&gt;&lt;/td&gt;
                      &lt;td&gt;&lt;br&gt;&lt;input type="submit" value="Submit"&gt;&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
          &lt;/form&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>the <strong>show_email_list.jsp</strong></p>
  
  <pre><code>&lt;!DOCTYPE html public"-//W3C//DTD HTML 4.0 Transitional//EN"&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;Chapter 4 - Email List&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;%@page import="business.*, data.*" %&gt;
          &lt;%
              String firstName = request.getParameter("firstName");
              String lastName = request.getParameter("lastName");
              String emailAddress = request.getParameter("emailAddress");
              User user = new User(firstName, lastName, emailAddress);
              UserIO.addRecord(user, "..webapps/MailingList/UserEmail.txt");
          %&gt;
          &lt;h1&gt;Thanks for joining&lt;/h1&gt;
          &lt;table cellspacing="5"&gt;
              &lt;tr&gt;
                  &lt;td align="right"&gt;First Name: &lt;/td&gt;
                  &lt;td&gt;&lt;%= user.getFirstName() %&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td align="right"&gt;Last Name: &lt;/td&gt;
                  &lt;td&gt;&lt;%= user.getLastName() %&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td align="right"&gt;Email Address: &lt;/td&gt;
                  &lt;td&gt;&lt;%= user.getEmailAddress() %&gt;&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
  
          &lt;form action="join_email_list.html" method="post"&gt;
              &lt;input type="submit" value="Return"&gt;
          &lt;/form&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>the <strong>User.java</strong> class</p>
  
  <pre><code>package business;
  
  public class User {
      private String firstName;
      private String lastName;
      private String emailAddress;
      //this class defines a user, what we can get from a user to store
      public User(){}
      public User(String first, String last, String email){
          firstName=first;
          lastName=last;
          emailAddress=email;
      }
  
      public String getFirstName() {
          return firstName;
      }
  
      public void setFirstName(String firstName) {
          this.firstName = firstName;
      }
  
      public String getLastName() {
          return lastName;
      }
  
      public void setLastName(String lastName) {
          this.lastName = lastName;
      }
  
      public String getEmailAddress() {
          return emailAddress;
      }
  
      public void setEmailAddress(String emailAddress) {
          this.emailAddress = emailAddress;
      }
  
  }
  </code></pre>
  
  <p>the <strong>UserIO.java</strong> class</p>
  
  <pre><code>package data;
  
  import business.User;
  import java.io.*;
  
  public class UserIO { //the user io class adds the entered info to a txt file a.k.a psuedo db
      public synchronized static void addRecord(User user, String fileName) 
              throws IOException{
          PrintWriter out = new PrintWriter( //open the printwriter
                  new FileWriter(fileName, true)); //write to file
          out.println(user.getEmailAddress()+"|"//write these things to file
                  +user.getFirstName()+"|"
                  +user.getLastName());
          out.close();//close out to free resources
      }
  }
  </code></pre>