• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

How to debug jsp page  RSS feed

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am running tomcat in a debug mode. i am able to debug the java files but unable to do that in case of jsp pages. Can anybody please suggest me how to do that?

Thanks
 
author & internet detective
Sheriff
Posts: 38569
659
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deepika,
Tip #1 - don't have Java code in your JSP pages. Then there is nothing to debug. Seriously, it is considered bad practice to have code in the JSP.
 
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Locate the servlet code generated by the Tomcat JSP Engine for the JSP page. You can debug the JSP page by reading this code.


English Writing Tips for Programmers

"JSP" is an acronym. In English, all of the letters of an acronym are capitalized. "jsp" is a spelling mistake.

When you use the word "I" in a sentence, it should be capitalized.
[ October 13, 2008: Message edited by: James Clark ]
 
Deepika Gupta
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for your answers and tips.I was in a hurry so I had written like that.

Actually I have done the same. I have created a folder in my project and linked that folder to the folder containing java files which JSP engine has generated.

The problem is when I put the breakpoint,it stops but says Source not found.It is unable to find the source lookup path even if I am pointing it to the work folder of the Tomcat server or the same folder in my project which has been linked to Tomcat folder.

Thanks
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!