title: cannot resolve symbol 'servlet'
body: <p>I got this big newbie question.
  When i try the following; the 'servlet' turns red and indicates 'Cannot resolve symbol 'servlet'.</p>
  
  <pre><code>import javax.servlet.http.*;
  import javax.servlet.ServletException;
  </code></pre>
  
  <p>I got apache tomcat running. I am a very big java newbie. Can anyone help me where to find a servlet library or something ? I googled but got no clear explanation of how to make this work.</p>
  
  <p>This is the content of my web.xml file;</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;web-app xmlns="http://java.sun.com/xml/ns/j2ee"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
           version="2.5"&gt;
  
      &lt;display-name&gt;
          HelloWorld
      &lt;/display-name&gt;
      &lt;description&gt;
          This is my first webapp
      &lt;/description&gt;
  
      &lt;servlet&gt;
          &lt;servlet-name&gt;Hello world!&lt;/servlet-name&gt;
          &lt;description&gt;This is a hello world servlet&lt;/description&gt;
          &lt;servlet-class&gt;servlet&lt;/servlet-class&gt;
      &lt;/servlet&gt;
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;HelloWorldServlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;HelloWorldServlet&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  
  &lt;/web-app&gt;
  </code></pre>
  
  <p><strong>EDIT:</strong> I use the IntelliJ IDEA IDE.
  And I am using Maven.</p>