Mike Berna

Greenhorn
+ Follow
since Aug 25, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mike Berna

Back to the drawing board, I guess...

Thanks for the response. I will look into the servlet resolution that you have suggested.
[ August 25, 2004: Message edited by: Mike Berna ]
19 years ago
JSP
Joel,
Thanks for the reply. I have just started working on this but from what I have found on the web, I have been headed in this direction:

try {
response.sendRedirect("http://SOME URL");
}
catch (FileNotFoundException fnfe) {
System.out.println("File Not Found");
}
}

I am totally new to this and may be completely off base. I think I need to declare several things prior to this. I am paging through an old Java text as I write this. My hope is to add this as an include file to all .jsp files in an application.
19 years ago
JSP
One thing to keep in mind. The error page you specify must be at least 512 bytes or IE will revert to the IE file not found error page (not the customized page).

For more info:
http://www.404-error-page.com/404-error-page-too-short-problem-microsoft-ie.shtml

Good Luck!
[ August 25, 2004: Message edited by: Mike Berna ]
19 years ago
JSP
Hi. I am brand new to Java (mostly ASP background) and have had a few Java projects thrown at me and am totally confused...

I need to detect a file not found exception before ever going to a page. This file exists on a different server so I cannot use a relative URL (I think this would eliminate using jsp:forward or jsp:include?) My plan is to use response.sendRedirect in a try/catch statement but I recieve all kinds of errors. What types of (java specific)statements need to be included to set this logic up? I appear to be missing several things. HELP!
19 years ago
JSP