webwork.action.standard
Class XML
java.lang.Object
webwork.action.ActionSupport
webwork.action.standard.XML
- All Implemented Interfaces:
- Action, IllegalArgumentAware, java.io.Serializable
- public class XML
- extends ActionSupport
XML "execution" wrapper.
- Version:
- $Revision: 1.7 $
- Author:
- Rickard Öberg (rickard@middleware-company.com)
- See Also:
- ,
Serialized Form
Constructor Summary |
XML()
|
Methods inherited from class webwork.action.ActionSupport |
addError, addErrorMessage, addIllegalArgumentException, doDefault, doExecute, doValidation, getActionName, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getLocale, getPropertyEditorMessage, getText, getTexts, getTexts, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XML
public XML()
execute
public java.lang.String execute()
throws java.lang.Exception
- Description copied from class:
ActionSupport
- Execute will first check the request for a result exception. If one
is found, then it will add its message as an error message and throw
the ResultException. If there no exception is found, then it will
invoke the "command" - invokeCommand(). If we are not invoking a command,
it will call validate() and then doExecute().
- Specified by:
execute
in interface Action
- Overrides:
execute
in class ActionSupport
- Returns:
- view
- Throws:
java.lang.Exception
setDocumentName
public void setDocumentName(java.lang.String documentName)
getDocument
public org.w3c.dom.Document getDocument()
parseDocument
protected org.w3c.dom.Document parseDocument(java.net.URL documentUrl)
throws java.io.IOException,
javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
- Throws:
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
getDocumentURL
protected java.net.URL getDocumentURL()
handleException
protected java.lang.String handleException(java.lang.Exception e)
Copyright © 2001-2003 WebWork All Rights Reserved.