File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error page problem

 
A Kumar
Ranch Hand
Posts: 980
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a problem..I have a jsp where i am generating an exception..

i tried generating a customexception also..

But in all these cases..it is showing an internal server error page...
and not taking the user to the error page...

Why??

I am using Tomcat 5.0.28..JDK1.4




And in the error page..the code is


[ December 17, 2007: Message edited by: Bear Bibeault ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<%@ page language="java" errorPage="error.jsp"%>



Hint: Check the path to error.jsp in the above line.

Hint2: Look at page 1-44 in the JSP spec (link in my signature) for an example of a well formed errorPage value.
 
A Kumar
Ranch Hand
Posts: 980
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hint: Check the path to error.jsp in the above line.


the error.jsp is in the same folder as other jsp's...



Hint2: Look at page 1-44 in the JSP spec (link in my signature) for an example of a well formed errorPage value.


Had a look at it..Seems that i have gone wrong with autoFlush attribute..

Correct me if it is something else thats the causse of it...

Would try it again tomm morning in office..

Regards
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just tried your code 'as is' and it worked.
My first guess was a relative link problem but, it they are in the same directory, that wouldn't be it.

Check your server logs to see, exactly what's going wrong.
 
A Kumar
Ranch Hand
Posts: 980
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Frankly dont know whats the cause of it...

I replaced the file with yesterdays backup copy...and it worked..

the only difference between the 2 files was a System out...

Thanks...all
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you looked in your server logs to see what's going wrong?
If not, that would be a good place to start.
 
A Kumar
Ranch Hand
Posts: 980
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes...

there werent anything related to this page....thats whats compounding the
problem...am not able to find reason for the behaviour...
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic