File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Debugging  JSP's Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Debugging  JSP Watch "Debugging  JSP New topic
Author

Debugging JSP's

ali farid
Ranch Hand

Joined: Aug 26, 2000
Posts: 60

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

Joined: Apr 20, 2000
Posts: 3252
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
 
 
subject: Debugging JSP's
 
Threads others viewed
index.jsp Error 300: Class XYZ not found
Giving up too soon....
Problem in deploying ear file in weblogic 6.1
JAVA MAIL not Sending
Java runtime error cannot find java.dll
developer file tools