That depends on your definition of a web server. Tomcat can serve HTML pages and handle CGI but it's capabilities are limited compared to a fully loaded web server such as Apache that was designed to be a web server from the outset.

Tomcat ships with a number of connectors of which one is an HTTP connector. While the Native Tomcat HTTP connector is great, it is limited in functionality compared to a full webserver like Apache. The documentation explains the capabilities and limitations. The documentation also describes why you would choose to implement Tomcat and Apache.

A production Java application environment typically consists of a Java Application Server (e.g. Tomcat) paired with a full web server. This pairing leverages the strengths of both applications.


In reply to Re: Re: Re: Perl in Tomcat by inman
in thread Perl in Tomcat by peppiv

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.