Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP Dedugging  RSS feed

 
patjana
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using iPlanet web server enterprise edition 6.0 to run my jsp application. I have some system.out.println statements in the java code that is embedded in jsp page for debugging purposes.I looked at the log files (errors and access) but not able to see my system.out.println statements.
Can anyone tell me where should I look for these output statements ?? Or do I need to configure the server to see these output statements ??
Thanks in advance.
-PatJana
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

"patjana"
your name doesn't agree with the javaranch policy on names.
please take a moment and re-register after reviewing the
guidelines at http://www.javaranch.com/name.jsp
Thanks for your cooperation.
regds.
- satya
 
shree vijay
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AFAIK ( I am only a beginner in JSP....) , you should use out.println() instead of System.out.println().
------------------
Regards,
Shree
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Can anyone tell me where should I look for these output statements ??
If you are using System.out.println( ) stmts, you should be
looking at the console of the server or the window from
which you started your server. You should be able to find
documentation about this in your server docs.
If you use out.println( ) stmts, as suggested above,
then these would ofcourse be in your JSP. However, I would
prefer the System.out.println( ) stmts that way I can
do an search after the debug is complete and delete these
lines.
regds.
- satya
ps: I have never used iPlanet, so I can't pinpoint.
 
patjana
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply.
I am using out.println statements. But I want to know where can I see the system.out.println statements in the server. I started the server from the command prompt and that is just a batch process. It is starting the server and saying that "the server is started successfully" and returning to the command prompt.
Any idea on how to see these statements? I looked at the log files also but of no use.
 
satish bora
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will be able to the output in same window from where you have started the Server.
------------------
Sa
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!