Hi Sanjay Bahal,

  Maybe you should create a subdirectory under WEN-INF called classes and put
you java class there. You need to specify the fully qualified pathe for your
servlet class in the web.xml file and set the mapping. Use the map name in any
request.

  Kaikuo Luo

Sanjay Bahal <[EMAIL PROTECTED]> wrote:
I installed Tomcat4.01/NT the examples run-
webapps/servlets.
I am trying to deploy my example it does not run.
I have directory structure
/webapps/search/Web-inf/classes.
Under /search I have my html file hello.htm-
<td VALIGN=TOP WIDTH="30%"><a href="/hello"><img
SRC="/images/execute.gif" HSPACE=4 BORDER=0 
align=TOP></a><a
href="/servlet/HelloWorldExample">Execute</a></td>

I have my class in /classes. Under Web-inf I have my
web.xml-
<servlet>
      <servlet-name>HelloWorld</servlet-name>
          <description>
                HelloWorld
          </description>
      <servlet-class>HelloWorldExample</servlet-class>
    </servlet>
<servlet-mapping>
      <servlet-name>HelloWorld</servlet-name>
      <url-pattern>/hello</url-pattern>
    </servlet-mapping>

When I run I get the error- The requested resource
(/hello) is not available. The othet tag also fails. I
have restarted etc Tomcat.

Am I not doing something right?

How do I turn on debugging/logging etc on the server.
Thanks
Sanjay




__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to