@DefaultKey(value="import") @ValidScope(value="request") public class ImportTool extends ImportTool
Usage:
Just call $import.read("http://www.foo.com/bleh.jsp?sneh=bar") to insert the contents of the named
resource into the template.
Toolbox configuration:
<tools>
<toolbox scope="request">
<tool class="org.apache.velocity.tools.view.ImportTool"/>
</toolbox>
</tools>
importSupportLOCK_CONFIG_KEY, log, LOGGER_NAME_KEY, SAFE_MODE_KEY, USE_CLASS_LOGGER_KEY| Constructor and Description |
|---|
ImportTool() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(ValueParser values) |
protected void |
initializeImportSupport(ValueParser config) |
String |
read(Object obj)
Returns the supplied URL rendered as a String.
|
fetch, readconfigure, getLog, initLogger, isConfigLocked, isSafeMode, setLockConfig, setSafeModeprotected void initializeImportSupport(ValueParser config)
initializeImportSupport in class ImportToolprotected void configure(ValueParser values)
configure in class ImportToolCopyright © 2002–2021 The Apache Software Foundation. All rights reserved.