Dear subscribers. I have a problem. I'm developing a web solution using Forte for Java CE edition v.4 and I have two problems that I hope you can help me with. The solution will be deployed on Apache 2.0.39/Tomcat 4.0.4 web server.
1) The solution consists mainly of JSP pages and shtml pages. The problem is that when I browse the solution from within the Forte IDE the pages are processed by Forte's built in Tomcat server and Tomcat doesn't process the server side includes etc. in the shtml files properly. Is there any way that I can have the shtml files processed properly? I.e. the syntax of shtml include statements differs from the JSP counterpart. 2) Some pages use nested server side include statements e.g. the include files for the page header and footer, i.e. files that are included are including other files. The problem in this case is that the nested includes might be written either by the JSP syntax or the shtml syntax, which causes the processing of the include directive to be ignored if the base file is of the other kind. I'll give an example below. There are the following files in the example. index.shtml, index.jsp, top.shtml, text.html. top.shtml includes text.html by a <!--#include file="text.html" --> statement. index.shtml includes top.shtml by a <!--#include file="top.shtml" --> statement. index.jsp includes top.shtml by a <%@include file="top.shtml" %> statement. In this example the index.jsp isn't displayed properly since the nested include in top.shtml isn't processed. I doesn't help, I think, to change top.shtml to top.jsp and the include statement for text.html to JSP style since then the index.shtml wouldn't process properly. I've tried to use the Server Side Include (SSI) servlet that can be activated in Tomcat's conf/web.xml but it doesn't make any difference. Either I misunderstand the purpose of the SSI servlet or I haven't activated it properly. Any more info. on this servlet would be appreciated. If there are anyone out there who can spread some light over these issues I'll be most grateful. Kind regards, Ola Theander =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
