• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to debug jsp page

 
Deepika Gupta
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
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35709
410
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.
 
Jimmy Clark
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!