• Post Reply Bookmark Topic Watch Topic
  • New Topic

error pages  RSS feed

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I configure error pages (depending upon exception, error code) in portal environment?

I don't think in web.xml. Right?

Thanks.
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Presenting a scenario where I need this:

Let�s say, MQ server or DB server is down and I get some exception, I cast that into CustomException and throw it up, at last the whole error stack gets displayed at screen.

How to approach this situation?

One solution I found is (valid for page flow portlets in weblogic):

In every method of controller, we can do something like:




Let me know if any better way is available.

Thanks.
 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found a better way:

 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!