• Post Reply Bookmark Topic Watch Topic
  • New Topic

displaying a web page from init method.  RSS feed

 
sean cee
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am writing a servlet which has a connection pooling mechanism in init method, but I am trying to display an error page if anything goes wrong.
1) How can I do this since there is no HttpServletResponse, HttpServletRequest parameters passed in?
2) Is it possible to get a HttpServletRequest handle within init because I need to grab a parameter from the requesting page.
Thanks in advance.
[This message has been edited by sean cee (edited November 18, 2001).]
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where would you display it? It's not like there's a master web browser out there somewhere.
The usual way to handle things like that is to record errors in the log. Depending on the server, you might also have a console window open where it would show up, but I wouldn't count on it - that console might be locked in an unattended server room anyway.
For critical error notification, you'd want to invoke some sort of messaging system that would page you and/or send email.
 
sean cee
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
I think that question needed more thought before I rushed to post it on the web..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!