How to Redirect Pages in DSP and Output Templates?

Hi All,

Can anyone let me know , how we can do the Page Redirection in the DSP or Output Templates.
I am using the WM IS4.6 and Developer 4.6 versions.

Like in JSP,
response.sendRedirect(“Errorpage.jsp”);

In ASP,
Response.Redirect(“ErrorPage.jsp”)

I want the above like functionality.

regards
James