Re: Generating a 404 response

2007-09-09 Thread Paul Singleton
[EMAIL PROTECTED] wrote: See Thread at: http://www.techienuggets.com/Detail?tx=12338 Posted on behalf of a User It didn't work. I got a 500 later in my code. Here's what I did: if(detail.size() > 0) { dbutil = new DBUtil(getServletConfig().getInitParameter(Constants

Re: Generating a 404 response

2007-09-09 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=12338 Posted on behalf of a User OK. My fault. This works: else { response.sendError(404, ""); return; } Now when I look in my http server log I see a status of 404 with the original URL. Thanks for your help. In Response To

Re: Generating a 404 response

2007-09-09 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=12338 Posted on behalf of a User It didn't work. I got a 500 later in my code. Here's what I did: if(detail.size() > 0) { dbutil = new DBUtil(getServletConfig().getInitParameter(Constants.JNDI_NAME));

Re: Generating a 404 response

2007-09-09 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=12338 Posted on behalf of a User Thanks very much. I will try that. In Response To: [EMAIL PROTECTED] wrote: > See Thread at: http://www.techienuggets.com/Detail?tx=12338 Posted on behalf > of a User > > I have a J2EE application residin

Re: Generating a 404 response

2007-09-09 Thread Paul Singleton
[EMAIL PROTECTED] wrote: See Thread at: http://www.techienuggets.com/Detail?tx=12338 Posted on behalf of a User I have a J2EE application residing on Tomcat. The pages are dynamically generated. If a use enters an invalid request I redirect him to a generic error page (which isn't really an e

Re: Generating a 404 response

2007-09-09 Thread samk
: <[EMAIL PROTECTED]> Sent: Sunday, September 09, 2007 3:15 PM Subject: Generating a 404 response > See Thread at: http://www.techienuggets.com/Detail?tx=12338 Posted on > behalf of a User > > I have a J2EE application residing on Tomcat. The pages are dynamically > generated. If

Re: Generating a 404 response

2007-09-09 Thread Martin Gainty
immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Sunday, September 09, 2007 3:15 PM Subject: Generating a 404 response See Thread at: http://www.techienuggets.com/Detail?tx

Generating a 404 response

2007-09-09 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=12338 Posted on behalf of a User I have a J2EE application residing on Tomcat. The pages are dynamically generated. If a use enters an invalid request I redirect him to a generic error page (which isn't really an error page but just a jsp th