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
Anybody any idea how i can fix this short of dumping the processPipelineTo?
groetjes, su.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
