HI,
Please rename the Hey.html->Hey.shtml
I think this should work
Regds,
Hemant
-----Original Message-----
From: Tony Howell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 20, 2000 4:02 AM
To: [EMAIL PROTECTED]
Subject: Basic SSI Question
I'm trying to get the following trivial servlet to work as a
server-side include:
/usr/netscape/server4/docs/HubSquared/servlet/Hey.java...
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class Hey extends HttpServlet {
public void doGet(HttpServletRequest req,
HttpServletResponse res)
throws ServletException, IOException {
PrintWriter out = res.getWriter();
out.println("<P>Hey<P>");
out.close();
return;
}
public void doPut(HttpServletRequest req,
HttpServletResponse res)
throws ServletException, IOException {
doGet(req, res);
}
}
---------------------------------------------------------------------
Following is the html
(/usr/netscape/server4/docs/HubSquared/Hey.html):
<HTML>
<HEAD><TITLE>"Say Hey"</TITLE></HEAD>
<BODY>
<H1>And the Hey servlet says...</H1>
<servlet code=Hey></servlet>
<H1>That's all folks</H1>
</BODY>
</HTML>
----------------------------------------------------------------------
Environment:
Communicator 4.7, Win95
NES 4.0, Solaris 2.6
servlet directory =
/usr/netscape/server4/docs/HubSquared/servlet
prefix = /HubSquared/servlet
----------------------------------------------------------------------
Browser results:
And the Hey servlet says...
That's all folks
----------------------------------------------------------------------
Any ideas on why I don't get the servlet's "Hey"?
btw:
- I have no problem accessing a servlet that generates a
complete
HTML page.
- I have no problem compiling Hey.java.
- When I change the html extension to shtml, I get the
following
server error:
trying to GET /HubSquared/Hey.shtml, handle-processed
reports:
no way to service request for /HubSquared/Hey.shtml
Thanks for your time.
Tony
___________________________________________________________________________
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
___________________________________________________________________________
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