@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>
importSupport
LOCK_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, read
configure, getLog, initLogger, isConfigLocked, isSafeMode, setLockConfig, setSafeMode
protected void initializeImportSupport(ValueParser config)
ImportTool
initializeImportSupport
in class ImportTool
config
- configuration valuesprotected void configure(ValueParser values)
ImportTool
configure
in class ImportTool
values
- configuration valuesCopyright © 2002–2021 The Apache Software Foundation. All rights reserved.