package.html :  » Scripting » scriptella » scriptella » driver » velocity » Java Open Source

Java Open Source » Scripting » scriptella 
scriptella » scriptella » driver » velocity » package.html
<body>
<h1>Velocity Adapter for Scriptella.</h1>
This driver allows to integrate velocity templates into script files.
<p>The content inside scipt elements managed by this driver is evaluated by Velocity engine and the output
is sent to the URL specified as connection parameter.</p>

<h2>General information</h2>
<table>
    <tr>
        <td><b>Driver class:</b></td><td><code>scriptella.driver.velocity.Driver</code></td>
    </tr>
    <tr>
        <td><b>URL:</b></td><td><code>URL to send output to. URIs are resolved relative to a script file directory.</code></td>
    </tr>
    <tr>
        <td><b>Runtime dependencies:</b></td><td><code><a href="http://www.ibiblio.org/pub/packages/maven2/velocity/velocity-dep/1.4/velocity-dep-1.4.jar">velocity-dep-1.4.jar</a></code></td>
    </tr>
</table>
<h2>Driver Specific Properties</h2>
<table border="1">
    <tr>
        <th>Name</th>
        <th>Description</th>
        <th>Required</th>
    </tr>
    <tr>
        <td>encoding</td>
        <td>Character encoding for output streams.</td>
        <td>No, the JVM default charset is used.</td>
    </tr>

</table>

<h2>Example</h2>
<code><pre>
&lt;connection driver="scriptella.spi.velocity.Driver" url="report.html"&gt;
    encoding=UTF-8;
&lt;/connection&gt;
</pre></code>
Registers a velocity connection which renders its output to a file report.html in the same directory
where the script file resides. UTF-8 is used to encode output.

</body>
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.