Class XML

java.lang.Object
webwork.action.ActionSupport
webwork.action.standard.XML
All Implemented Interfaces:
Serializable, Action, IllegalArgumentAware

public class XML extends ActionSupport
XML "execution" wrapper.
Version:
$Revision: 1.7 $
Author:
Rickard Öberg (rickard@middleware-company.com)
See Also:
  • Constructor Details

    • XML

      public XML()
  • Method Details

    • execute

      public String execute() throws 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:
      Exception - thrown if a system level exception occurs. Application level exceptions should be handled by returning an error value, such as Action.ERROR.
    • setDocumentName

      public void setDocumentName(String documentName)
    • getDocument

      public Document getDocument()
    • parseDocument

      protected Document parseDocument(URL documentUrl) throws IOException, ParserConfigurationException, SAXException
      Throws:
      IOException
      ParserConfigurationException
      SAXException
    • getDocumentURL

      protected URL getDocumentURL()
    • handleException

      protected String handleException(Exception e)