I'm trying to create my first server-side include servlet running on an
Apache server. I reference it using:

<HTML><HEAD>
   <TITLE>ssitest.jhtml</TITLE>
</HEAD><BODY>
<SERVLET CODE="PageHeader"> Servlet not found. </SERVLET>
</BODY></HTML>

The servlet has the following general structure (based on the brief example
in the O'Reilly book):

public class PageHeader extends HttpServlet {
  public void doPost ( ...req, ....res ) throws ........{
    PrintWriter out = res.getWriter ();
    out.println ( "a long HTML string" );
} }

When I try to fetch it using IE 4.5 on a Mac, I get:

Java Server Side Include Error
Requested URI /hhca/ssitest.jhtml is not a file. Please, make sure you
request a java server side include file.

When I try to fetch it using IE 4.0 on a Windows NT box, I get:

java.lang.IllegalStateExceptiion: Already called getOutputStream.

Would anyone have any idea what the problem might be? Thanks.

Regards,
Steve Mann

-------------------------------------------
Creative Digital Publishing Inc.
1317 Palm Street, San Luis Obispo, CA 93401-3117
-------------------------------------------
805.788.0138              805.593.3811 (fax)
[EMAIL PROTECTED]       http://www.cdpubs.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to