Matt Becker wrote:
>
> I need to write an JSP web application and so far have been going the route
> of configuring Tomcat and Apache to work together. Two things come to my
> mind to ask:
>
> 1. Is the Tomcat/Apache combination really necessary? This web site is
> going to be pretty much all JSP. I know that Tomcat can do the serving on
> it's own, but I've read stuff saying that it's not so good at serving static
> files and so forth. How would it benefit a JSP web application by me setting
> up the Tomcat/Apache combination?
No you don't have to use Apache. Apache is faster at serving static
pages but if you don't have many then tomcat can serve them. If you
wanted to use SSL you used to have to use Apache, but now tomcat 3.2b8
supports ssl. We're using tomcat 3.2b8 standalone to serve our webapp
and about 5 static pages with ssl.
>
> 2. I'm not sure if the actual files of the JSP web application would
> reside in the Tomcat directory, or would they be split in-between Tomcat and
> Apache, where JSP files would be on the Tomcat side and html files and
> content on Apache?
We keep jsps in the tomcat dir. But you can put them anywhere, you just
need to specify where in the conf files.
>
> I would greatly appreciate any input on this!
>
> Thanks!
>
> Matt