| java.lang.Object com.opensymphony.webwork.views.xslt.XSLTResult
XSLTResult | public class XSLTResult implements Result(Code) | | XSLTResult provides support for XSLT generated views of WebWork actions.
XSLTResult dynamically creates a DOM representation of the invoking WebWork
action object and applies a specified stylesheet to it.
The DOM representation of the WebWork action is produced by JavaBeans
style introspection of the properties of the action using an
extensible AdapterFactory. Common Java types and collection are
supported as well as arbitrary beans composed of these types. (See
AdapterFactory). Action properties may also return their own DOMs
(Object implementing Node, Document, or other DOM types) which will then
appear directly as part of the the result DOM for the stylesheet.
The contents of the result tag normally specify the location of an XSL
stylesheet, relative to the servlet context. e.g.:
...
/foo.xsl
If the stylesheet location is absent, the raw XML is returned.
By default, stylesheets are cached for performance. This can be disabled
by setting the webwork property webwork.xslt.nocache to true.
XSLTResult utilizes a servlet context sensitive URIResolve
See Also: AdapterFactory author: Philipp Meier author: Pat Niemeyer (pat@pat.net |
noCache | protected boolean noCache(Code) | | |
XSLTResult | public XSLTResult()(Code) | | |
getStylesheetLocation | public String getStylesheetLocation()(Code) | | |
getURIResolver | protected URIResolver getURIResolver()(Code) | | Get the URI Resolver to be called by the processor when it encounters an xsl:include, xsl:import, or document()
function. The default is an instance of ServletURIResolver, which operates relative to the servlet context.
|
setParse | public void setParse(boolean parse)(Code) | | If true, parse the stylesheet location for OGNL expressions.
Parameters: parse - |
setStylesheetLocation | public void setStylesheetLocation(String location)(Code) | | |
|
|