Sorry, I made a heck of a booboo in my last post...   I understand your
confusion.

You are partially right, partially wrong.  It is possible to map any path to
and webapp, which is different than to any url.

You are correct in that the .html file is not necessary.  I forgot that they
had the source code in here... and I've been working mostly with .jsp
files... and was thinking it was a .jsp file for some reason.  

when you point your browser to

http://localhost/examples/servlet/HelloWorldExample

it is returning the servlet that was compiled from 

/var/tomcat4/webapps/testurl/WEB-INF/classes
                                                HelloWorldExample.class

My understanding is that since that file compiles to a servlet, the only way
you can execute it is to point your broswer to
//localhost/yourwebappname/servlet/classname

the servlet is required, and cannot be removed, as that is how servlets
work.

The rest of this still holds true (I made a correction or two however)
Your directory structure would be (for deploying JUST the helloworld
example)

/var/tomcat4/webapps/testurl/WEB-INF
                                        classes    (directory)
/var/tomcat4/webapps/testurl/WEB-INF/classes
                                                HelloWorldExample.class


which you should then be able to deploy in apache with 

WebAppDeploy /testurl conn /testurl

You only specify the path to the webapp, as the directory that contains the
WEB-INF directory, and the other parts of your webapp.


(after you deploy it in tomcat of course, with something like
  <Context path="/testurl" docBase="testurl" 
         debug="0"/>
)


So now, to get the webapp, the what you have to type in is
http://localhost/testurl/servlet/HelloWorldExample

However, if you want to do this 
http://localhost/testurl/

and have it run, you could simply write an html file called index.html and
have it automatically redirect the browser to 
/servlet/HelloWorldExample/

Sorry for the goofup.  Does this clear it up for you?


Dan



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

Reply via email to