On 26.05.2004 17:05, Suzan Foster wrote:

Consider the following FlowScript code:

<code-snippet>
form newFile(form) {

<!-- uninteresting form handling code -->
...
if (form.getSubmitId() == "new") {
var uri = bean.name.replace(/\s/g, "_").toLowerCase() + ".xml";
var file = folder.newFile(uri);
var os = new java.io.ByteArrayOutputStream();
cocoon.processPipelineTo("templates/" + bean.type + ".xml", null, os);
file.content = os.toString();
os.close();
... }


   cocoon.sendPage('content/' + cocoon.request.path, null);
}
</code-snippet>

The code executes properly, but results in the sendPage only returning a portion of the generated page from the pipeline:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd";>
<html xmlns:xlink="http://www.w3.org/1999/xlink";>
<head>
<META http-equiv="Content-Ty

Is this the output in the file or of sendPage('content/' + ...) ??

Anybody any idea how i can fix this short of dumping the processPipelineTo?

Do you know of PipelineUtil class. The above one might be deprecated and removed.
http://wiki.cocoondev.org/Wiki.jsp?page=FOM_Cocoon


Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to