RE: Servlet path configuration in Tomcat/Apache

2001-03-18 Thread Andy Cole

Hi. I am trying to change the physical path for servlets as well in Unix
Enivroment. Do you have a copy of server.xml for me to check against mine?
Appreciate if you can share and thanks in advance.

--Original Message--
From: "Zhengan Cai" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: March 15, 2001 4:51:02 AM GMT
Subject: Servlet path configuration in Tomcat/Apache


Dear Sir/Madam:

I have installed Apache 1.3.19 and Tomcat 3.2.1 to my Win2000. I configured
both Apache and Tomcat, set the path and classpath to the system. Apache can
run JSP and Servlets for the system provided test examples only.

Now I would like to add my own servlet files(in .class) to Tomcat. I created
a folder " mytest" at the same level of "examples" in the tomcat, ie:

c:\tomcat\webapps\examples
c:\tomcat\webapps\mytest

I added "mytest" in the "Server.xml" to let the system create new context.

In the "examples" test HTML file, the servlet path has been set up to "
.../servlet/HelloWorldExample"...

Comparing to that, I setup my servlet path to "../servlet/x"

Now my problem is: I create a test HTML file with test button on it. When I
click the button, it says the page can't be found.

If you have time, Could you tell me:

1. How to put my own file(jsp, servlet, HTML) in the Tomcat or Apache?

2. How to configure the Tomcat or Apache for the Servlet path?

Thanks very much. Have a nice day!

Terry


---
FREE! The World's Best Email Address @email.com
Reserve your name now at http://www.email.com





RE: Servlet path configuration in Tomcat/Apache

2001-03-15 Thread Georges Boutros

i've been having the same problem.

i didn't find a solution yet

thanks

-Original Message-
From: Zhengan Cai [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 11:51 PM
To: [EMAIL PROTECTED]
Subject: Servlet path configuration in Tomcat/Apache


Dear Sir/Madam:

I have installed Apache 1.3.19 and Tomcat 3.2.1 to my Win2000. I configured
both Apache and Tomcat, set the path and classpath to the system. Apache can
run JSP and Servlets for the system provided test examples only.

Now I would like to add my own servlet files(in .class) to Tomcat. I created
a folder " mytest" at the same level of "examples" in the tomcat, ie:

c:\tomcat\webapps\examples
c:\tomcat\webapps\mytest

I added "mytest" in the "Server.xml" to let the system create new context.

In the "examples" test HTML file, the servlet path has been set up to "
../servlet/HelloWorldExample"...

Comparing to that, I setup my servlet path to "../servlet/x"

Now my problem is: I create a test HTML file with test button on it. When I
click the button, it says the page can't be found.

If you have time, Could you tell me:

1. How to put my own file(jsp, servlet, HTML) in the Tomcat or Apache?

2. How to configure the Tomcat or Apache for the Servlet path?

Thanks very much. Have a nice day!

Terry



Servlet path configuration in Tomcat/Apache

2001-03-14 Thread Zhengan Cai

Dear Sir/Madam:

I have installed Apache 1.3.19 and Tomcat 3.2.1 to my Win2000. I configured
both Apache and Tomcat, set the path and classpath to the system. Apache can
run JSP and Servlets for the system provided test examples only.

Now I would like to add my own servlet files(in .class) to Tomcat. I created
a folder " mytest" at the same level of "examples" in the tomcat, ie:

c:\tomcat\webapps\examples
c:\tomcat\webapps\mytest

I added "mytest" in the "Server.xml" to let the system create new context.

In the "examples" test HTML file, the servlet path has been set up to "
../servlet/HelloWorldExample"...

Comparing to that, I setup my servlet path to "../servlet/x"

Now my problem is: I create a test HTML file with test button on it. When I
click the button, it says the page can't be found.

If you have time, Could you tell me:

1. How to put my own file(jsp, servlet, HTML) in the Tomcat or Apache?

2. How to configure the Tomcat or Apache for the Servlet path?

Thanks very much. Have a nice day!

Terry