Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP Debugging

 
charan renta
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

can anyone tell how to debug JSp pages

Iam using Eclipse 3.1.2 and Weblogic server
[ May 18, 2006: Message edited by: Bear Bibeault ]
 
naveen gupta
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP is a mix of HTML, JavaScript and Java

You can't debug HTML and JavaScript line by line as you can do with java using any editor

and coming to scriptlet in JSP, i doubt if you can use any editor to debug

since JSP get converted into class file, and this class file is used by your application and for which we don't have access to the Java file

Note: what exactly are you looking, tell me the bug you are looking for in JSP
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thisisnaveen,
Welcome to JavaRanch!

We're pleased to have you here with us in the JSP forum, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

You can change it here
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
Purushoth Thambu
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I too like to know how to debug exactly at the JSP break points. I read about the JSR-045 but still couldn't figure out how to make Eclipse (MyEclipse) locate the source. Every time I debug the JSP I keep getting "source not attached" message. Would appreicate any help.
 
Manesh Kumar
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not fully sure. But if you use Web Tools project of eclipse, you can configure Weblogic server in the Servers list and then deploy the application in Eclipse itself to the weblogic server. After that, you need to start the weblogic in debug mode. Then you can have breakpoint in JSP.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic