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
See Thread at: http://www.techienuggets.com/Detail?tx=12338 Posted on behalf of a User Hi Martin, My name's Jason. I am posting from a Tomcat Forum on a website. Sam must be the admin person...? Anyway what's happening is that if a user request causes a page request for a non-existent page we

Re: Generating a 404 response

2007-09-09 Thread Martin Gainty
Sam- How is your custom error page being indexed? M-- This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immedia