This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi Guys, my problem is like this, I am dynamically generating a html page using servlet.I don't want to send this HTML code ro browser(which parses it and display HTML page),insted i want to send HTML code to a text file(using file object in java.io package).I am not getting how to write it? I would be thankful to you if any of you guys could clear my doubt ASAP. Thanks
hello! The writing process to a file is same as u do to wrint the html to browser just create the out object something like this. PrintWriter out = new PrintWriter(new FileWriter(filename)); now when u call out.print("<html>...") writes in the file specified.