• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to debug errors in JSP Page

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How to debug errors in JSP Page working on Tomcat5.0,Apache server. Is there any way we can pinpoint where the error has error took place.

Thank you
 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you're talking about syntax errors, you should know that every JSP is translated into a servlet before being compiled to a .class file. So, it is possible that a JSP file containing only 89 lines will give a syntax error at line 123. The solution ? Go find the corresponding servlet (myJSP.jsp will be translated into myJSP_jsp.java) and look at line 123.

If on the other hand you're talking about logical errors (the JSP file does compile and is shown but does someting unexpected), you could use the Log4J classes. A very good introduction can be found at http://www.vipan.com/htdocs/log4jhelp.html.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic