|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.webwork.views.xslt.XSLTResult
public class XSLTResult
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.:
AdapterFactory
,
Serialized FormField Summary | |
---|---|
static String |
DEFAULT_PARAM
|
protected boolean |
noCache
|
Constructor Summary | |
---|---|
XSLTResult()
|
Method Summary | |
---|---|
void |
execute(ActionInvocation invocation)
Represents a generic interface for all action execution results, whether that be displaying a webpage, generating an email, sending a JMS message, etc. |
protected AdapterFactory |
getAdapterFactory()
|
protected Source |
getDOMSourceForStack(Object action)
|
String |
getStylesheetLocation()
|
protected Templates |
getTemplates(String path)
|
protected URIResolver |
getURIResolver()
Get the URI Resolver to be called by the processor when it encounters an xsl:include, xsl:import, or document() function. |
protected void |
setAdapterFactory(AdapterFactory adapterFactory)
|
void |
setLocation(String location)
Deprecated. Use #setStylesheetLocation(String) |
void |
setParse(boolean parse)
If true, parse the stylesheet location for OGNL expressions. |
void |
setStylesheetLocation(String location)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_PARAM
protected boolean noCache
Constructor Detail |
---|
public XSLTResult()
Method Detail |
---|
public void setLocation(String location)
public void setStylesheetLocation(String location)
public String getStylesheetLocation()
public void setParse(boolean parse)
parse
- public void execute(ActionInvocation invocation) throws Exception
Result
execute
in interface Result
Exception
protected AdapterFactory getAdapterFactory()
protected void setAdapterFactory(AdapterFactory adapterFactory)
protected URIResolver getURIResolver()
protected Templates getTemplates(String path) throws TransformerException, IOException
TransformerException
IOException
protected Source getDOMSourceForStack(Object action) throws IllegalAccessException, InstantiationException
IllegalAccessException
InstantiationException
|
WebWork Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |