I had been attempting to test servlet by hosting it on hosting that is shared by GoDaddy server. I'm producing the code using Java SDK 5__22(The SDK version of GoDaddy server). I examined same code,folder structure, on LOCAL Tomcat5..27(The server verision of Godaddy).

But I can run JSP file this proves that my account is JAVA enabled.Help. P.S. Each time am getting 404 error.index.jsp is working fine.

FolderStructure:-

WebApplication--
                           -META-INF
                           -WEB-INF---
                                               -classes----test.class
                                               -web.xml

web.xml

<?xml version="1." encoding="UTF-8"?>

<web-application version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://world wide web.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-application_2_4.xsd">

    <servlet>

        <servlet-title>test</servlet-title>

        <servlet-class>test</servlet-class>

    </servlet>

    <servlet-mapping>

        <servlet-title>test</servlet-title>

        <url-pattern>/test</url-pattern>

    </servlet-mapping>

    <session-config>

        <session-timeout>

            30

        </session-timeout>

    </session-config>

    <welcome-file-list>

        <welcome-file>index.jsp</welcome-file>

        </welcome-file-list>

    </web-application>

test.java

/*

 * To alter this template, choose Tools  Templates

 * and open web site within the editor.

 */

import java.io.IOException

import java.io.PrintWriter

import javax.servlet.ServletException

import javax.servlet.http.HttpServlet

import javax.servlet.http.HttpServletRequest

import javax.servlet.http.HttpServletResponse

/**

 *

 * @author Mike

 */

public class test stretches HttpServlet demands for HTTP <code>GET</code> and <code>POST</code> techniques.

     * @param request servlet request

     * @param response servlet response

     * @throws ServletException if your servlet-specific error happens

     * @throws IOException if the I/O error happens

     */

    protected void processRequest(HttpServletRequest request, HttpServletResponse response)

    throws ServletException, IOException mind>")

            out.println("<body>")

            out.println("<h1>Servlet test at " + request.getContextPath () + "</h1>")

            out.println("</body>")

            out.println("</html>")

         finally 

    

    // <editor-fold defaultstate="flattened" desc="HttpServlet techniques. Click the + sign up the left to edit the code.">

    /**

     * Handles the HTTP <code>GET</code> method.

     * @param request servlet request

     * @param response servlet response

     * @throws ServletException if your servlet-specific error happens

     * @throws IOException if the I/O error happens

     */

    protected void doGet(HttpServletRequest request, HttpServletResponse response)

    throws ServletException, IOException 

    /**

     * Handles the HTTP <code>POST</code> method.

     * @param request servlet request

     * @param response servlet response

     * @throws ServletException if your servlet-specific error happens

     * @throws IOException if the I/O error happens

     */

    protected void doPost(HttpServletRequest request, HttpServletResponse response)

    throws ServletException, IOException 

    /**

     * Returns a brief description from the servlet.

     * @return a String that contains servlet description

     */

    public String getServletInfo() // </editor-fold>