cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Suzan Foster <suzan.fos...@nerocmediaware.nl>
Subject Problem using processPipelineTo()
Date Wed, 26 May 2004 15:05:06 GMT
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message