• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

System.out.println does not work in an action

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic