[opencms-dev] Is it possible to include html into jsp page?

Thierry Collogne tcollogne at hotmail.com
Tue Jan 17 09:41:08 CET 2006


I just found the solution (at last).

I was using "<cms:include file="index.html"/>" and this throwed a 
nullpointerexception. It seems that i had to add the element attribute like 
this

    <cms:include file="index.html" element="body" />

Now it works.


>From: "Thierry Collogne" <tcollogne at hotmail.com>
>Reply-To: The OpenCms mailing list <opencms-dev at opencms.org>
>To: opencms-dev at opencms.org
>Subject: [opencms-dev] Is it possible to include html into jsp page?
>Date: Tue, 17 Jan 2006 08:26:03 +0000
>
>Hi all,
>
>I am running opencms 6.0.3 and I am trying to include a html page into a 
>jsp page, but I can't get it to work. I have no problem including another 
>jsp page into the jsp, but html pages won't work.
>
>I am using the following code (jsp and html page are in the same folder)
>
>   <cms:include file="index.html"/>
>
>I have also tried using the api, but the result is the same.
>Is there perhaps something special I must do in order for it to work? Is it 
>possible to include a html page into a jsp?
>
>Can someone help me, please, because I am running out of ideas.
>
>Thank you,
>
>Thierry
>
>
>
>_______________________________________________
>This mail is sent to you from the opencms-dev mailing list
>To change your list options, or to unsubscribe from the list, please visit
>http://lists.opencms.org/mailman/listinfo/opencms-dev





More information about the opencms-dev mailing list