[opencms-dev] Getting the raw content of an HTML file (was CmsJspActionElement.getContent () won't let me get the contents of an html file...)
Olli Aro
olli_aro at yahoo.co.uk
Thu Jun 24 12:22:02 CEST 2004
The problem here is that the opencms runs the source via jTidy, when saving
it in the editor, so your custom tags are cleaned out as part of the save
process. The save process is handled in
com.opencms.workplace.CmsXmlTemplateEditor, so maybe it is possible to
disable it there by overwriting the class.
Olli
-----Original Message-----
From: opencms-dev-admin at opencms.org [mailto:opencms-dev-admin at opencms.org]
On Behalf Of Geoff Winkless
Sent: 24 June 2004 09:53
To: opencms-dev at opencms.org
Subject: [opencms-dev] Getting the raw content of an HTML file (was
CmsJspActionElement.getContent () won't let me get the contents of an html
file...)
Olli Aro wrote:
> 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
Further to this - the file content that comes back is parsed, which is a
problem for me because I want to do stuff like (eg)
<select>ALL_OPTIONS</select>
and replace ALL_OPTIONS with some generated code, but because the parser
objects to the invalid HTML it fails.
Is there any way I can get the raw source as a string?
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.708 / Virus Database: 464 - Release Date: 18/06/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.708 / Virus Database: 464 - Release Date: 18/06/2004
More information about the opencms-dev
mailing list