Hi Adrian. I've now tried your suggestion. Unfortunately it doesn't seems like it works, which I admit is somewhat strange since the <jsp:include> statement, as far as I understand it, does a proper HTTP GET for the page included not just loads the page of the disk. The result was however disappointing. It worked fine to include a .html file using jsp:include but if the same file was renamed to .shtml nothing was included. By the way, if the flush attribute for the jsp:include statement was set to false I get an "internal error" crash.
/ola > -----Original Message----- > From: A mailing list about Java Server Pages specification > and reference [mailto:[EMAIL PROTECTED]] On Behalf Of > Adrian Janssen > Sent: den 1 augusti 2002 14:24 > To: [EMAIL PROTECTED] > Subject: Re: Problm: Nested includes in JSP and shtml pages. > > > Have you tried using the <jsp:include page="pagename" /> > tag? This runs when your servelt runs, and it will include > the *results* of the named URL. > > > -----Original Message----- > > From: Ola Theander [SMTP:[EMAIL PROTECTED]] > > Sent: 01 August 2002 01:55 > > To: [EMAIL PROTECTED] > > Subject: Problm: Nested includes in JSP and shtml pages. > > > > 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 > -- > > It is the strict policy of Truworths that its e-mail facility > and all e-mail communications emanating therefrom, should be > utilised for business purposes only and should conform to > high professional and > business standards. Truworths has stipulated certain regulations in > terms whereof strict guidelines relating to the use and > content of e-mail communications are laid down. The use of > the Truworths e-mail facility is not permitted for the > distribution of chain letters or > offensive mail of any nature whatsoever. Truworths hereby distances > itself from and accepts no liability in respect of the > unauthorised use of its e-mail facility or the sending of > e-mail communications > for other than strictly business purposes. Truworths furthermore > disclaims liability for any unauthorised instruction for which > permission was not granted. Truworths Limited accepts no liability > for any consequences arising from or as a result of reliance > on this message unless it is in respect of bona fide > Truworths business for which proper authorisation has been granted. > > Any recipient of an unacceptable communication, a chain > letter or offensive material of any nature is requested to > notify the Truworths e-mail administrator > ([EMAIL PROTECTED]) immediately in order that appropriate > action can be taken against the individual concerned. > > ============================================================== > ============= > 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 =========================================================================== 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
