Dear subscribers.

I have two questions about using Tomcat 4.x & Apache 2.x as a base for
web application development:

1) A solution typically consists of html, jsp pages and servlets. Is it
possible to store html, jsp and servlets based on the logical structure
of the solution and have Tomcat process only based on the file extension
or must all jsp and servlet files be collected in the folder pointed out
by the WebAppDeploy attribute in httpd.conf? I.e. if I have a solution
where I store customer data in a database I'll probably have at least a
form page for registering a new customer, a list view where I list all
customers and a servlet to store submitted customer data in a database.
In a simple case the form page would be a html page and the list view an
jsp page. If these files where to be grouped logically, i.e. by task,
the form page, the jsp list page and the servlet should be in the same
directory on disk but as I understand it Apache/Tomcat integration
requires me to have the html pages in one directory structure for access
by Apache and jsp/servlets in another structure, pointed out by
WebAppDeploy, for access by Tomcat. Is this correct? With a logical
grouping of files mentioned above I mean a directory structure like
this:

Customer Web
    |-----|
    |   customers
    |        |---- new_customer_from.html
    |        |---- list_customers.jsp
    |        |---- store_new_user.class
    |
    |-----|
        companies

2) As far as I know there are two connectors for integrating Tomcat and
Apache, Warp and AJP. When I experimented I've used the warp connector,
but I don't really know the difference between the two besides that they
utilize different protocols. If I can get some more information on this
matter I'll be grateful.

Kind regards, Ola Theander


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to