if i call self.writeHTML() from an action, it prepends a redundant header to the output :


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd";>
<html>
<head>
<title>ServletNameInsteadOfCheetahTemplateTitle</title>
</head>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <meta content="text/html; charset=ISO-8859-1"
       http-equiv="content-type">
    <title>Title set in cheetah template</title>
    <link rel="stylesheet" href="/common/style.css" type="text/css">

    <script language="javascript" type="text/javascript"
       src="/common/lib.js"></script>

</head>


however, just accessing the servlet directly without an action does not prepend the redundant header.


i don't use any methods in the servlet except writeHTML() because i use cheetah templates to generate the output, which i render with self.writeln(templateOutput)

i have a feeling i may be using the class incorrectly; nor have i scoured my code yet - just wondering if anyone sees something glaringly obvious, or has come across this before.


thanks


------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Webware-discuss mailing list Webware-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to