JRun working... how can i use servlet in jrun server
<p>JSP pages are correctly working in Jrun, but when I used servlet it cannot find .class file 
of that servlet and gives 404 error while execution.
Can any one help me how jrun works with servlet. Am I miss out any point.</p>

<p><strong>here is my web.xml</strong></p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"&gt;
  &lt;display-name&gt;myProject&lt;/display-name&gt;

      &lt;servlet&gt;
        &lt;description&gt;&lt;/description&gt;
        &lt;display-name&gt;myClass&lt;/display-name&gt;
        &lt;servlet-name&gt;myClass&lt;/servlet-name&gt;
        &lt;servlet-class&gt;myPackage.myClass&lt;/servlet-class&gt;

      &lt;/servlet&gt;
      &lt;servlet-mapping&gt;
        &lt;servlet-name&gt;myClass&lt;/servlet-name&gt;
        &lt;url-pattern&gt;/myClass&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
    &lt;/web-app&gt;
</code></pre>

<p><strong>and my simple servlet</strong></p>

<pre><code>enter code here

package myPackage;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.*;

public class myClass extends HttpServlet {
    private static final long serialVersionUID = 1L;


        protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        // TODO Auto-generated method stub
        PrintWriter pw = response.getWriter();
        pw.println("&lt;html&gt;&lt;body&gt;my page&lt;/body&gt;&lt;/html&gt;");
    }

}
</code></pre>

<p><strong>and jsp page</strong></p>

<pre><code>enter code here

&lt;%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
&lt;title&gt;Insert title here&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form action="myClass" method="post"&gt;
&lt;input type="submit" value="submit"&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
