saving file in jsp

Hi,I want to save constans of the jsp file in server as word document. and then forward the request to next page.,How can i do it?Thanksvivek
[176 byte] By [vivek.shankara] at [2007-10-2 18:25:52]
# 1
Use apache POI(Read and write DOC files (only very basic support right now) to create a word document.
Rahul.Guptaa at 2007-7-13 19:46:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Thanks a lot Rahul.I dont have to send a the file back to client.But i ahve to just save it in server?Would it be possible using POI?ThanksVivek
vivek.shankara at 2007-7-13 19:46:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Using POI, you can read/ write the word files. Its your choice whether you want to send to the client or save it on the server.
Rahul.Guptaa at 2007-7-13 19:46:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Visit this URL to get the list of APIs available. http://schmidt.devlib.org/java/libraries-word.html
Rahul.Guptaa at 2007-7-13 19:46:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

This seems to be a easiest solution, if you know xml processing.

http://www.javaworld.com/javaworld/jw-07-2004/jw-0712-officeml.html

For testing, save this code as a .doc file and...

<?xml version="1.0"?>

<?mso-application progid="Word.Document"?>

<w:wordDocument xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml">

<w:body>

<w:p>

<w:r>

<w:t>Hello JavaWorld.</w:t>

<w:br/>

<w:t>This is a great reporting tool.</w:t>

</w:r>

</w:p>

</w:body>

</w:wordDocument>

Rahul.Guptaa at 2007-7-13 19:46:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
HI Rahul!!Thanks a lot..Kind of stuff that i was looking for :-) ...Helps a lot...appreciate it!ThanksVivek
vivek.shankara at 2007-7-13 19:46:55 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...