Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Debugging JSP's

 
ali farid
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

What is the proper way to debug jsps especially for runtime exceptions, because when it gives the compile time error then it mentions the specific jsp file with line number, but when it is compiled into servlet then afterwards if a runtime exception occurs then sometimes it is not easy to trace the error even by opening the .java file created by the server.
Please tell me if there are any debuggers available for jsps?
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by ali farid:
What is the proper way to debug jsps especially for runtime exceptions [...]

Usually it's quite clear where the problem is, especially if you did the Good Thing and put most of your code in beans and/or tag libraries. When you're stumped, find out where your application server keeps the processed .java file for your jsp.
Borland JBuilder 4 is very good at debugging jsps; I was impressed. The competition won't be far behind (if behind at all). Whether you'll find decent jsp debugging in any of the free versions, I rather doubt it. But I'd love to be told otherwise
- Peter
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic