This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Append System.out.println values to a file which is in webcontent folder

 
surendra gogineni
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

How to append the system.out.println("Some text here") to a particular file which is in the path of Webcontent.

Can any body please give some suggestions so that i will work in that way.
Thanks in advacne.




 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64633
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
System.out emits its output to the console or a log file. If you want to append info to anyplace else, System.out is not the way.

(And, no Java code should be placed in JSPs in the first place.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic