ImportTool Reference Documentation
General-purpose text-importing view tool for templates.
@@@version@@@, @@@date@@@org.apache.velocity.tools.view.tools.ImportTool$importMarino A. Jonsson<tool>
<key>import</key>
<scope>request</scope>
<class>org.apache.velocity.tools.view.tools.ImportTool</class>
</tool>
read()
Returns the supplied URL rendered as a String.
String read(String url)
The URL to import.
The supplied URL rendered as a String.
This method takes an arbitrary URL or URI and renders it as a String.
This tool can also be used to import local .vm resources without sharing
the current velocity-context (as opposed to the #parse directive).
$import.read("http://jakarta.apache.org/velocity/tools")
$import.read("/wookie.jsp")