@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)
Configuration
|
protected void |
initializeImportSupport(ValueParser config)
Importsupport initialization
|
String |
read(Object obj)
Returns the supplied URL rendered as a String.
|
fetch, readconfigure, getLog, initLogger, isConfigLocked, isSafeMode, setLockConfig, setSafeModeprotected void initializeImportSupport(ValueParser config)
ImportToolinitializeImportSupport in class ImportToolconfig - configuration valuesprotected void configure(ValueParser values)
ImportToolconfigure in class ImportToolvalues - configuration valuesCopyright © 2002–2018 The Apache Software Foundation. All rights reserved.