• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

displaying a web page from init method.

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).]
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks.
I think that question needed more thought before I rushed to post it on the web..
 
What are you doing? You are supposed to be reading this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic