Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Handling exceptions in a custom result

Juan Damasceno

2007-08-07

Replies:

I need to do something like:

  public void execute(ActionInvocation invocation) throws Exception {
    try {
      // Some operations
    } catch (Exception e) {
      //Send user to a error page
    }
  }

Any idea?
©2008 junlu.com - Jax Systems, LLC, U.S.A.