Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

System.out.println does not work in an action

 
Jaime Stuardo
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have this in an action:



Above code does not show the message in the top of corresponding JSP file.

How can I do it? this may be very useful for debugging purposes.

Best regards,
Jaime
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64708
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course not. The system output has nothing to do with the response. The text will appear on the console (if there is one) or the log file being written by the container (e.g. Tomcat)

P.S. System output is a poor way to debug. You should check out logging via java.util.logging or Log4J
 
Jaime Stuardo
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply

Regards
Jaime

Bear Bibeault wrote:Of course not. The system output has nothing to do with the response. The text will appear on the console (if there is one) or the log file being written by the container (e.g. Tomcat)

P.S. System output is a poor way to debug. You should check out logging via java.util.logging or Log4J
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic