patrick et michelle wrote:
Hi there, I'm a newcomer in Web technology and I need to understand how to
configure Tomcat 3.3
First of all, current versions are 5.0.30 and 5.5.7 (for JDK 1.5.0, or actually JRE 1.5.0). While 5.5.7 can be made to run on JDK (not JRE) 1.4.x, it is not intended for 1.4 series. Version 3.3 is really ancient. Series 4.x.y was the helm of Servlet 2.3 and JSP 1.2 specification, wjile 5.x.y is helming Servlet 2.4 and JSP 2.0
Go for 5.5 if you can, otherwise 5.0.30, unless you're crippled with some exotic OS that has no JDK 1.4 written for it. If it has a regular 1.3, go for 4.1.x
In fact, I can see that the servlets examples offered with tomcat are located in tomcat\jakarta-tomcat-3.3.2\webapps\examples\web-inf\classes\whatever.class
Although, the URL to invoke these servlets is
HTTP://localhost:8080/examples/servlet/whatever.class
This is just in case the "invoker" service servlet is active. That is not the default on 4.x and higher Tomcat's.
How is this URL-directory path relation done ? (through what config file /
what command / TAG ??)
Invoking URL is configured for each Context (or Java Web Application in Servlet/JSP specification). You are free to map it anywhere you like.
If I want to build a web application and want to put a new directory
structure, where do I put it and what configuration files do I have to
modify in order to be able to invoke them through a URL.
For your new web application you must configure a Context within the desired VirtualHost. The Context in question will tell Tomcat where to look for the files and where to map the application in the URL space.
Can somebody provide me with a step-by-step ?
Go to jakarta.apache.org, look for Tomcat and read the docs.
Nix.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
