This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Rahul Sudip Bose
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The stack trace or HTTP response will tell you.
 
Rahul Sudip Bose
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It will be in the server log. You can view these from eclipse or any other IDE.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic