Posted: Wed Dec 01, 2004 2:11 pm Post subject: Redirecting Failed Login Attempts
Newbie
Joined: 05 Mar 2004 Posts: 3
Hi,
I'm currently working with WebClient in a webapp using MQ Workflow. When i log in with an invalid account the webclient shows an error page, telling me:
Mensaje de la API de MQSeries Workflow
Lo sentimos, ha ocurrido un error con su peticion, por favor pongase en contacto con el administrador.
Descripcion del error: FMC00512E Logon denied
The questions are:
* How can i redirect the response to a custom ERROR page for bad logins?
* Exists a variable in the request, that tells me about bad login? Can i detect it with a servlet filter?
Another alternative i feel we can use is to extend the JSPViewer class to create our own CustomViewer class. In the CustomViewer class we can overide the the errorResponse method to our custom implementation that we need. The customised implmentation of errorResponse method can redirect you to the required error page.
Need to edit the WebClient.properties file to register the CustomViewer class for the Webclient environment.
Similary we can do for the login method (as suggested by Ratan). To define CustomCommandHandler and override the loginResponse method.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum