org.apache.beehive.netui.pageflow.annotations
Annotation Type Jpf.Catch


@Target(value=ANNOTATION_TYPE)
@Retention(value=RUNTIME)
public static @interface Jpf.Catch

A declarative "catch" for exceptions thrown from actions (Jpf.Action, Jpf.SimpleAction).


Required Element Summary
 Class<? extends Throwable> type
          The type of Throwable to handle.
 
Optional Element Summary
 String message
          The JSP 2.0-style expression (e.g., ${pageFlow.myProperty} or literal string message.
 String messageKey
          A message resource within a message bundle Jpf.MessageBundle that is used to look up the message.
 String method
          The exception handler method (Jpf.ExceptionHandler) to invoke.
 String path
          The destination URI to forward to.
 

Element Detail

type

public abstract Class<? extends Throwable> type
The type of Throwable to handle.

method

public abstract String method
The exception handler method (Jpf.ExceptionHandler) to invoke. Mutually exclusive with path().

Default:
""

message

public abstract String message
The JSP 2.0-style expression (e.g., ${pageFlow.myProperty} or literal string message. This message is used in two ways:

Default:
""

messageKey

public abstract String messageKey
A message resource within a message bundle Jpf.MessageBundle that is used to look up the message. The message is used in two ways:

Default:
""

path

public abstract String path
The destination URI to forward to. Mututally exclusive with method(). For more Jpf.ConditionalForward-style options, use the method() attribute.

Default:
""