JSP debug

Y

Yesssss

Hi to all, I'd like to know if is possible to debug a JSP without using
the System.out.print() istruction.

Thanks for answering, Luigi.
 
A

asaguden

Yes.
I assume you also want to know how, right?

All jsp are compiled to servlets.

Either you have precompiled them or the servlet container does that for
you at runtime.
First they are checked for correctness according to the servlet spec
and if it is ok - creating the .java servlet file. Then that .java file
is compiled into an ordinary .class file.

When jsp are compiled you can choose to store the .java file as well as
the .class file.
The .java file can as any regular java file be debugged. Of course that
means that you
are not debugging/stepping the actual jsp file but the servlet that the
jsp represents.

That is one I way i know about.
 
L

Luigi Fugaro

Thank you very much for answering, but i have an other problem:

I'm running IIS and i have JSP files.

Now I would like to know how I can run JSPs on IIS and make a remote
debugging too.

I know it's weird but I have to do it in that way... it sucks for me!!!

Thank you again for your help, Luigi ;)
 
A

anonymous

Yesssss said:
Hi to all, I'd like to know if is possible to debug a JSP without using
the System.out.print() istruction.

Thanks for answering, Luigi.
Some tools, Oracle JDeveloper and (possibly) NetBeans will let you
singlestep through a JSP.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top