File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Store JSP output in HTML File Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Store JSP output in HTML File" Watch "Store JSP output in HTML File" New topic
Author

Store JSP output in HTML File

Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
I want to store the output generated by JSP in HTML file on server.

How can I achieve it?


My blood is tested +ve for Java.
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
By using servlet. You can write the complete response to the file, while writing to the client.

Or

Write an scriptlet in your JSP page which would spit out the html to a file.
[ January 23, 2006: Message edited by: Adeel Ansari ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56529
    
  14

Or investigate filters and response wrappers.
[ January 23, 2006: Message edited by: Bear Bibeault ]

[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Store JSP output in HTML File
 
Similar Threads
In and then out of IDE
JSP output to file
How to save html output of jsp into a file
HTML to Text via Screen scrape
xsl variables to core set