1
0
-1

Hi,

I'm exploring the use of RedirectException to redirect to the Forms > Form Spaces > Pages > error.htm page so that I can display custom messages to the user.

However, I am getting the above error when using the following code:

new EventLogService().logErrorEvent("${trackingCode}|${updatedMember.ErrorMessage}")

throw new RedirectException('../error.htm')

I have tried a few variations, but still get the error.

We are running on TMv5.0, so I have imported the 

com.avoka.tm.util

class.

Any guidance would be appreciated.

Thanks

Mark

  1. Mark Murray

    Update:

    I managed to get the RedirectException to work partly; it at least displays the error page.

    The redirect was caught later in the script processing and so was consumed there, rather than being invoked itself. Refactoring the groovy scripts allowed the redirect to stand alone and be processed.

    But the displayed 'error.htm' page only had the default message "Unexpected Error".

    How do I pass values to the error.htm page so that the velocity template allows me to display a custom message?

    Thanks


CommentAdd your comment...