Yeah, as I mentioned in my original posting, I had tried that and
was getting "...no way to service request for /HubSquared/Hey.shtml".
I have since changed some iPlanet configuration parameters to eliminate
that error. The "Content Mgmt" tab contains two parameters. I changed
"Activate server-parsed HTML?" from "No" to "Yes, with exec tag"
(I also tried "Yes, without exec tag"). "Parse which files?" is set
to "Files with the extension .shtml".
I suspected that the servlet was never getting executed, so I added
a call to log(), and the message doesn't appear in the log.
I also verified that the return code for the get was 200 (excerpt
from access log: "GET /Hey.shtml HTTP/1.0" 200 -.
I created a symbolic link to the shtml from the document base, played
with several variations of the <servlet> tag, etc.
If you have any ideas, I would love to hear them.
Thanks
Gajjar Hemant Kumar Dashrathlal wrote:
>
> 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
___________________________________________________________________________
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