Hi!
TK wrote:
1. Can I install and run Apache and Tomcat on the same machine? Or, at the first place, do I need to do so if Tomcat alone can be used as a Web server?
Yes, you can and no, you don't have to if your setup does not require it. Often sites use apache for serving static content (due to it's superior performance and security concerns) and let it pass requests to jsps to a tomcat.
2. If I install both of them on the same machine, how do I differentiate the host names? Does http://127.0.0.1/ refers to the Apache or Tomcat server?
You might want to familiarize yourself with tcp/ip networking basics. For short, each application running on a host that wants to talk ip allocates a port on that host. You access different ports by appending the port number to the hostname separated by a colon:
http://localhost:8080/
In a common setup with apache and tomcat, apache binds port 80 (the standard HTTP port) and passes along jsp requests to tomcat by talking to it on another port, on which tomcat listens.
3. How could I create a virtual link to point from the root directory to another directory located at the other machine or the other disk drive?
I am not entirely sure I understand what you mean. In general, all requests go to the apache first and it decides which of them to server from where. If the requests call servlets or jsps, apache just forwards the request to tomcat to serve as it sees fit.
6. Can I used JSP to access MS Access database? If not, what is the recommended DBMS to be used, both in Windows and Linux environments?
Since jsps and servlets are (basically) java programs, they can access any database for which a jdbc driver exists. If there is one for access (which is not a DBMS system really...) I do not know. I would not however recommend using access in a live environment. Use a real RDBMS like MySQL, postgresql (if you want OSS) or MS SQL Server, Oracle and the like (if you want commercially supported software).
HTH
Phil
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
