Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes JSP and the fly likes JSP Debugging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP Debugging" Watch "JSP Debugging" New topic

JSP Debugging

charan renta

Joined: May 18, 2006
Posts: 1

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

Joined: Apr 12, 2006
Posts: 129
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

Joined: Dec 11, 2004
Posts: 13410

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

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Thank you, Naveen.
Purushoth Thambu
Ranch Hand

Joined: May 24, 2003
Posts: 425
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

Joined: Mar 21, 2006
Posts: 94
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.

I agree. Here's the link:
subject: JSP Debugging
It's not a secret anymore!