public class

ResultException

extends Exception
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ webwork.action.ResultException

Class Overview

If Actions throw this exception from execute(), the dispatcher will show the view corresponding to the chosen result.

This is primarily useful for certain types of checking. For example, if an action can only be executed if the client is logged in, he can have a method "checkLogin", which checks the login status and throws ResultException if not logged in. The view would then be the login screen, and "checkLogin" should be called first in the action's execute() method.
See Also

Summary

Public Constructors
ResultException(String aResult)
ResultException(String aResult, String message)
Public Methods
String getMessage()
String getResult()
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public ResultException (String aResult)

public ResultException (String aResult, String message)

Parameters
aResult the result view; i.e. - ERROR, INPUT, etc
message the error message

Public Methods

public String getMessage ()

public String getResult ()