HI pingsso ,
Your question is a little lite on information. I can give you general guidance based on what is there but exact steps I cannot provide as it changes from the R6 Platforms to the R12 Platforms due to the interface change.
The concept you need to review in the R5SP5 docs are located in Chapter 15: Responses and Response Groups
From your description you want to look at setting up.
WebAgent-OnAccept-Redirect
WebAgent-OnReject-Redirect
These would be died to rules you have setup to deal with these events under the realm in question.
If you still need more help after reviewing this chapter please let us know.
Also please provide the following:
1) Version of policy server
2) Version of web agent in use
3) Use case you are trying to accomplish with examples.
Hope this helps.
Gene