Fórum
Redirecting to a standard error page
Stephen Bennett, modificado 13 Anos atrás.
Redirecting to a standard error page
New Member Postagens: 3 Data de Entrada: 24/06/10 Postagens Recentes
I've seen that this question has already been asked on stackoverflow but as of yet, hasn't got an answers.
I'm trying to redirect my users to a standard error page when any of the portlets on the page are unavailable. I've managed to do this with javascript, by putting the following code:
I really don't like this solution, and I'd prefer it if I was able to redirect the entire page by catching any exceptions that are thrown. I've worked with the ext environment, so I'd be comfortable doing this if this is the preferred solution.
Thanks in advance
I'm trying to redirect my users to a standard error page when any of the portlets on the page are unavailable. I've managed to do this with javascript, by putting the following code:
window.location='myurl.html'
I really don't like this solution, and I'd prefer it if I was able to redirect the entire page by catching any exceptions that are thrown. I've worked with the ext environment, so I'd be comfortable doing this if this is the preferred solution.
Thanks in advance
Alec Gonzales, modificado 13 Anos atrás.
RE: Redirecting to a standard error page
New Member Postagens: 14 Data de Entrada: 23/03/10 Postagens Recentes
i'm also interested in learning how to standardize the error message.
anyone knows how?
anyone knows how?
Gaurang Sheladia, modificado 13 Anos atrás.
RE: Redirecting to a standard error page
Regular Member Postagens: 159 Data de Entrada: 15/02/09 Postagens Recentes
Hi Stephen,
You can also extend the Error Servlet which basically handle your all error messages based on parameters while redirecting to the servlet.
Hope it will helps.
Regards,
Gaurang
You can also extend the Error Servlet which basically handle your all error messages based on parameters while redirecting to the servlet.
Hope it will helps.
Regards,
Gaurang
Stephen Bennett, modificado 13 Anos atrás.
RE: Redirecting to a standard error page
New Member Postagens: 3 Data de Entrada: 24/06/10 Postagens Recentes
Thanks - I will take a look at this and will post here with anything that I find out.
Namrata Hangal, modificado 13 Anos atrás.
RE: Redirecting to a standard error page
Regular Member Postagens: 161 Data de Entrada: 27/07/10 Postagens Recentes
Hi All,
Any solution to this?
Regards,
Namrata
Any solution to this?
Regards,
Namrata
Jignesh Vachhani, modificado 13 Anos atrás.
RE: Redirecting to a standard error page
Liferay Master Postagens: 803 Data de Entrada: 10/03/08 Postagens Recentes
Also you can write your own filter for redirection and can modify as per your requirement
Namrata Hangal, modificado 13 Anos atrás.
RE: Redirecting to a standard error page
Regular Member Postagens: 161 Data de Entrada: 27/07/10 Postagens Recentes
Hi Jignesh,
Could you please elaborate on your solution? It would help a lot of us.
I did not understand what you meant by "filter" ?
Thanks!
Namrata
Could you please elaborate on your solution? It would help a lot of us.
I did not understand what you meant by "filter" ?
Thanks!
Namrata