title: Servlet Mapping for Weblogic 8, How to?
body: <p>I have a WAR file with a web application that has been deployed to a weblogic stream.</p>
  
  <p>The JSP part works fine, but it can't find the servlets. Possible due to the lack of mapping in my web.xml file.</p>
  
  <p>I was working fine on Tomcat 6, but can't seem to find using weblogic.</p>
  
  <p>I used annotation @WebServlet("/actionOne") but this doens't seem to work.</p>
  
  <p>I am a little confused about how to map these correctly via the web.xml file.</p>
  
  <p>the servlets are .java files and located at WEB-INF/classes/com/foo/bar/</p>
  
  <p>So far I have added the following the web.xml file but the servlet-mapping section has me confused.</p>
  
  <pre><code>     &lt;servlet&gt;
              &lt;servlet-name&gt;actionOne&lt;/servlet-name&gt;
              &lt;servlet-class&gt;com.foo.bar.actionOne&lt;/servlet-class&gt;
      &lt;/servlet&gt;
      &lt;servlet&gt;
              &lt;servlet-name&gt;actionTwo&lt;/servlet-name&gt;
              &lt;servlet-class&gt;com.foo.bar&lt;/servlet-class&gt;
      &lt;/servlet&gt;
  </code></pre>
  
  <p>Hopefully the above is correct, the next section I'm not sure how to use and would appreciate some help.</p>
  
  <pre><code>   &lt;servlet-mapping&gt;
               &lt;servlet-name&gt;actionOne&lt;/servlet-name&gt;
               &lt;url-pattern&gt;/actionOne&lt;/url-pattern&gt;
     &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>The servlets are being called from the jsp via a Form action="actionOne"</p>