Title: RE: Re[2]: tomcat-servlets problem

  First of all I have to thank everybody foryour help and your time :-)

> -----Original Message-----
> From: Serg Velikanov [mailto:[EMAIL PROTECTED]]
> Sent: 24 November 2000 20:09
> To: Ritwick Dhar
> Subject: Re[2]: tomcat-servlets problem
>
>
> Hello Ritwick,
>
> Friday, November 24, 2000, 9:03:24 PM, you wrote:
>
> RD> 'Getting started' documentation is included with the
> download in the
> RD> $TOMCAT_HOME/doc directory. Its also available online at
> jakarta.apache.org.

> RD>  -----Original Message-----
> RD> From: Panagiotis Konstantinidis [mailto:[EMAIL PROTECTED]]
> RD> Sent: Friday, November 24, 2000 1:07 PM
> RD> To: '[EMAIL PROTECTED]'
> RD> Subject: tomcat-servlets problem
>
>
>
> RD>   Hello everybody. I am new to using Tomcat and I have
> some problems. I am
> RD> using Tomcat with Apache. The problem is that I do not
> know how to run a
> RD> servelt (or a jsp file) using tomcat. Lets say I have a servlet
> RD> (HelloWorld.java) that I have compiled properly. How can
> I run it using
> RD> Tomcat? How can I configure the relevant files? I have
> read the FAQ and the
> RD> configuration instructions but they do not seem to work.
> I have tried:
> RD> http://localhost/servelts/HelloWorld
> <http://localhost/servelts/HelloWorld>
> RD> (and many more combinations) but it does not seem to
> work. Could anybody
> RD> help me please and give me explicit examples of how to
> configure the proper
> RD> files and where to put the servlet files? Is it the same
> if I want to run
> RD> JSP files? Thank you for your time.
>
>  
> RD>   Regards
>
> RD>    Panos
>
> Getting started, getting started. May be, way be. So you have your
> servlet? Does tomcat know about it? It seems to me no.
>
> So .java and .class files of your project classesyour should be in
> tomcat\webapp\YOURPROJECTDIRECTORY\WEB-INF\class\YOURPROJECTCL
> ASSNAME\*.*
> due to servlet spec.

Ok I understand it, but what I cannot understand is how can I configure Tomcat to go and look at the files in : tomcat\webapp\MYPROJECTDIRECTORY\WEB-INF\class\MYPROJECTCLASSNAME.

Is it done automatically? Do I have to change anything in the server.xml file? Do I have to change anything in the web.xml file etc?

 And the how do I access it? Do I have to type the full name, e.g http://127.0.0.1/myServlets/WEb-INF/class/Test or I can just access it using http://127.0.0.1/myServlets/Test. Is it the same for Html and .jsp files?

Could you please be more specific?

> Your .html .htm .jsp and so on files should be in
> tomcat\webapp\YOURPROJECTDIRECTORY\
>
> And, please, restart your tomcat.
>
> For Tomcat TEAM eyes only not for mass:
> I'm  very respect your work, but if you know something, please tell
> about it to other in your docs. As for me, I'm living in Ukraine and
> for me it's not a lot of ways to obtain knowleadge --- Internet, some
> translated books and hackers ftp's with books.
> It's seems to me Tomcat documentation very-very spartan. No details
> and so on.  Your users should work hardly to know something. Please,
> sometime remember, sweet times when you first started.
> --
>
> Kharkov, Ukraine
>
> Best regards,
>  Serg                            mailto:[EMAIL PROTECTED]
>

Regards

  Panos

Reply via email to