my dog learned polymorphism*
The moose likes EJB and other Java EE Technologies and the fly likes JSP & Servlets : How do detect THE MAIN cause of error ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JSP & Servlets : How do detect THE MAIN cause of error ?" Watch "JSP & Servlets : How do detect THE MAIN cause of error ?" New topic
Author

JSP & Servlets : How do detect THE MAIN cause of error ?

Rahul Sudip Bose
Ranch Hand

Joined: Jan 21, 2011
Posts: 637

There are so many possible sources of error : web.xml, servlet, jsp etc. How do i know where exactly the error(s) lie ? Can that be done by using an IDE (i am not using one now) ?
Is there any tool which shows the sequence of events which caused the errors ?

PS : Servlet code looks simple, but its so frustrating to find the errors. Is it really "difficult" or is it just me ?

SCJP 6. Learning more now.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

The stack trace or HTTP response will tell you.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Rahul Sudip Bose
Ranch Hand

Joined: Jan 21, 2011
Posts: 637

Paul Sturrock wrote:The stack trace or HTTP response will tell you.


How to see the stack trace ? any tools that do all this from one UI ?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

It will be in the server log. You can view these from eclipse or any other IDE.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP & Servlets : How do detect THE MAIN cause of error ?
 
Similar Threads
JSP Submit from java code
how to open a new window in jsp
MVC question
How to recognise errors and construct a page corrosponding to that error
Using sendRedirect and requestDispatcher