DxpHome ||
Samples ||
Details ||
Docs ||
Trees ||
xml-xsl ||
Links
// Capture.java
Capture is used to capture the byte output from tags it encloses and store it
back into the request as a String or a byte[] that can be written directly to a
file or another OutputStream.
Capture output from this form and store it for other tags on the page..
<dxp:Capture store="posted">
<table>
<tr><td>Firstname:</td> <td><dxp:Rp name="firstname"/></td></tr>
<tr><td>Lastname:</td> <td><dxp:Rp name="lastname"/></td></tr>
<tr><td>Choice:</td><td><dxp:Rp name="choice"/></td></tr>
</table>
</dxp:Capture>
Capture output as bytes and then write it to a file...
<dxp:Capture storeBytes="yourbytes">
This output will be captured to display and then write to a file
<dxp:LoopSet matrix="myrecords">
...
</dxp:LoopSet>
</dxp:Capture>
<!-- display the byte[] captured -->
<dxp:Bytes name="yourbytes"/>
<!-- write the byte[] captured into a static html page -->
<dxp:WriteBytes filename="captured.html
<html>
<head><title>Your Bytes</title>
<body>
<dxp:Bytes name="yourbytes"/>
</body>
</html>
<dxp:WriteBytes>
@author Mark Ashworth
@version 0.1, 2001-08-23
Return to Index
Note: We have tried to test all of the code examples but they may contain errors. Any questions, comments,
suggestions, or problems should be sent to info@plands.com.
|