> From: Íõºì±¦ [mailto:[EMAIL PROTECTED]]
> 
> Dear All:
>   I just want to know how to serialize my page to file.

Why do you want this? Depending on purpose, there are two solutions:
1. Run Cocoon from command line. Example is "build docs".
2. Use SourceWritingTransformer.java, which is currently available in
the Cocoon CVS, scratchpad directory. There are also usage samples in
the scratchpad webapp.

Vadim

> When the first user request the page, the webserver generate a html
> file,
> and the file is saved into disk, so other user request the page,
> there will be a static page.
> 
> I use this method
> 
> <map:match pattern="jsp/*.htm*">
>     <map:generate type="jsp" src="/docs/samples/jsp/{1}.jsp{2}"/>
>     <map:transform src="stylesheets/page/simple-page2html.xsl"/>
>     <map:serialize type="html"/>
>    </map:match>
> 
> but this had not generate html file to disk, but just to user.
> If I change the
> <map:serialize type="html"/>
> to
> <map:serialize type="file"/>
> there will be a error, because the file serialize is not defined.
> Any one knows?
>                                                          Thank you!
>                                                          Bob Wang


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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

Reply via email to