× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



This is a multipart message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
I want to activate the ServerSideInclude on our IHS1.3.12.  I can load the
.shtml files directly from my browser but cannot load them from within a
servlet. The servlet is executed but the include is not processed. I got a
blank page and when I display the source I get following:

HTML RESULT:
**************
<html>
<!--#include virtual="/Contilines/ssi/VesselSchedule/Header.shtml"-->
<BODY>
<!--#include virtual="/Contilines/ssi/VesselSchedule/Body.shtml"-->
</BODY>
</HTML>

HTTPD.CONF FILE:
*****************
This is what I have changed:
...
AddType text/html .shtml
AddHandler server-parsed .shtml
...
# C:/IBM HTTP Server/cgi-bin should be changed to whatever your
ScriptAliased
# CGI directory exists, if you have that configured.
# <Directory "C:/IBM HTTP Server/cgi-bin">
<Directory "C:\WebSphere\AppServer\hosts\default_host">  (also tried to
add a new <Directory> section)
AllowOverride None
Options All
</Directory
...

SERVLET RUNNING:
*******************
This is my servletcode :

public void doGet(HttpServletRequest req, HttpServletResponse res) throws
ServletException, IOException
{
// Prepare output to HTML
res.setContentType("text/html");
PrintWriter out;
out = res.getWriter();
// Header of page
out.println("<html>");
out.println("<!--#include
virtual=\"/Contilines/ssi/VesselSchedule/Header.shtml\"-->");
// Body of page
out.println("<BODY>");
out.println("<!--#include
virtual=\"/Contilines/ssi/VesselSchedule/Body.shtml\"-->");
// End of page
out.println("</BODY>");
out.println("</HTML>");
out.flush();
out.close();
}

WEBSPHERE FOLDERS:
*********************
This is my folderstructure :

.../hosts
...
.../hosts/default_host
...
.../hosts/default_host/default_app
...
.../hosts/default_host/default_app/web
...
.../hosts/default_host/default_app/web/ContiLines
...
.../hosts/default_host/default_app/web/ContiLines/ssi
...
.../hosts/default_host/default_app/web/ContiLines/ssi/VesselSchedule
...

Is there something I forget?  any help welcome.


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.