Yes this is true. There is a second option that may be useful. This would be
if I were using a pure java solution.
Word documents are very varied so I would suggest using rtf ( rich text
format ) which should open in Ms Word on the client I think. Depending on
the size of the documents you wish to produce and the dynamic complexity I
suggest if you have low complexity you can produce a simple template rtf
document in say Word. Then place unique place holders in this document at
the locations where you wish the data to appear. At the request open this
rtf template and do string substitutions in the rtf document and pass it
back to the used with a content type for rtf. I would suggest that it be
100% runtime and that the links the user sees that you refer to be links to
a jsp/servlet to execute the above described solution.
If you have greater complexity the above may need to be more complex but the
same idea. The idea of recuring sections and the like.
Hope this helps.
Regards Chris.
-----Original Message-----
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 04, 2001 3:30 PM
To: [EMAIL PROTECTED]
Subject: Re: How to create a word document through a servlet?
No, not if you mean "Word" documents. You could, however,
format the resulting text anyway you want using XML/XSL and
then generating the hyperlink URLs.
-mark
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's
Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On
Behalf Of
Valderrama, Eric
Sent: Wednesday, January 03, 2001 4:46 PM
To: [EMAIL PROTECTED]
Subject: How to create a word document through a servlet?
Hi,
I'm new on servlets.
I need to get a result set from a sql statement, to create
one or more word
documents, and then to generate a response that shows
several links to those
documents created in the servlet.
Is that possible?
Any suggestion?
Thanks in advance
Eric.
____________________________________________________________
_______________
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body
of the message "signoff SERVLET-INTEREST".
Archives:
http://archives.java.sun.com/archives/servlet-interest.html
Resources:
http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html