Thanks! That solution worked out very well for me.

One other quick question, if you don't mind - 

I've checked the servlet specs and found that the request.getRemoteAddr
() method does not throw any exceptions, but I'd like to know if this 
method is always guaranteed to return a non-null, valid IP address.

Thanks,

James



---------- Original message ----------
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 15, 2003 2:36:33 PM
Subject: RE: Setting error page for servlets


Howdy,

>The problem with that solution is this - I have written my own
>exception, and cannot override the list of exceptions associated with
>the doPost() method.

Hmmm... I think the error page might still be able to work.  Try making
your exception a runtime one, so that you don't have to declare it.  
The
container will still map it according to the definition in web.xml
(which will have the class of your custom exception).

Yoav Shapira



This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, 
proprietary and/or privileged.  This e-mail is intended only for the 
individual(s) to whom it is addressed, and may not be saved, copied, 
printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your 
computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to