posted 21 years ago
One additional comment: the text vs. binary distinction, when deciding on servlets or JSPs for presentation, is not always right-on. There are lots of cases where you'll want to use a servlet to generate text, if it's not in a language in the style of XML, HTML, or WML.
JSPs tend to assume that you're using a format that involves tagged text with tags like <this>, and that your file format is immune to added whitespace, including newlines. If that's not the case, then although it is possible to use JSPs to produce the output, the result will look foreign and be difficult to maintain. In those cases, it's probably better to use a servlet to generate the content.
This can sometimes even become an issue for HTML <pre> tag sections, where whitespace and newlines become suddenly significant. Preformatted sections in HTML are often best written as JSP standard include actions that include the output of a servlet.