[opencms-dev] CmsJspActionElement.getContent () won't let me get the contents of an html file...
Olli Aro
olli_aro at yahoo.co.uk
Fri Jun 18 13:53:01 CEST 2004
Hi Geoff,
I have not used that method to get content before, so it might be that it
returns the control file for the content type page. Below is a link to
another way to do this. I have used this before and know that it definitely
works:)
http://mail.opencms.org/pipermail/opencms-dev/2004q1/009130.html
Regards,
Olli
-----Original Message-----
From: opencms-dev-admin at opencms.org [mailto:opencms-dev-admin at opencms.org]
On Behalf Of Geoff Winkless
Sent: 18 June 2004 11:32
To: opencms-dev at opencms.org
Subject: [opencms-dev] CmsJspActionElement.getContent () won't let me get
the contents of an html file...
I'm almost certainly being stupid...
Here's the code:
CmsJspActionElement cms = new CmsJspActionElement(pageContext,
request, response);
out.write (cms.getContent("/mypath/wibble.html"));
The result is:
??? com.opencms.core.CmsException: XML document /mypath/wibble.html is
not of the expected type. This document is "page", but it should be
"XMLTEMPLATE" (OpenCms XML template file). ???
I suppose I'm using the wrong method (as usual): what should I be using
instead of this getContent method?
Cheers
Geoff
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.700 / Virus Database: 457 - Release Date: 06/06/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.700 / Virus Database: 457 - Release Date: 06/06/2004
More information about the opencms-dev
mailing list