Display error message in HTML from Webseal

259 views Asked by At

Hello I have an error page for user when their account gets locked. When I view the source code of page it just contains one line

%ERROR%

I am trying to understand if this is some kind of string interpolation as I have never seen it done with % sign. The error message that is displayed is this

1

There are 1 answers

0
Matt On

The raw file you are viewing is a response page template. When that page is presented to the client making the request, the %MACRONAME% values are substituted and the HTML (or JSON) content returned from the web reverse proxy has that substituted text. Hint, you can further customize the messages to the user by substituting the macro into a javascript variable within the response page template, and then make logic decisions based on that client side javascript code. For example, you could catch one of the IBM error codes and translate it into saying something like "Account is locked".

More information is available on the macros within the IBM documentation.