aspose file tools*
The moose likes JSP and the fly likes JSP page display problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP page display problem" Watch "JSP page display problem" New topic
Author

JSP page display problem

bharat nagpal
Ranch Hand

Joined: Oct 26, 2002
Posts: 76
I’m migrating an existing application’s authentication from Database to container managed authentication. There is a case where I need to catch the exception and display an error page. I get a 404 when exception is caught, instead of getting jsp page.
When I open a browser window and try to access that error page using http://localhost/common/abc/myError.jsp
The page is shown.
"Now" If I go to my application and replicate that error condition, exception is caught and also the error page is displayed. I can’t understand why, first time, I don’t get error page???

any clue?
Shankar Narayana
Ranch Hand

Joined: Jan 08, 2003
Posts: 134
I dont have any clue, but try to find out from where is the error being generated, is it from the webserver(if any) or the servlet container.


"Failure is not when you fall down; its only when you fail to get up again."
bharat nagpal
Ranch Hand

Joined: Oct 26, 2002
Posts: 76
There is no error message anywhere. The only thing I'm able to see in logs is 404 (in access.log). and When I debug the code it goes to the line where the request Forward is executed with all valid values.
The code works fine even for the first time, if I remove container authentication.
bharat nagpal
Ranch Hand

Joined: Oct 26, 2002
Posts: 76
To be precise, I'm not able to see the jsp page, when I try to fwd. the request. it's not getting compiled. But when I access it directly through browser, it gets compiled and after that the above Fwd. stuff works fine.

-Bharat
 
Don't get me started about those stupid light bulbs.
 
subject: JSP page display problem