File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Opening MS Word Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Opening MS Word" Watch "Opening MS Word" New topic

Opening MS Word

Emil Karlsson
Ranch Hand

Joined: May 23, 2002
Posts: 63
does anyone know if it's possible to open MS Word from a jsp page and send some text(ex.Name, Adress and so on) to be displayed in the word-document?
/Emil Karlsson
Rachel Thomas

Joined: May 22, 2003
Posts: 1
Well to open Ms-Word and send text to it, just set the mimeType in the contentType attribute in the Jsp page directive to application/msword which enables the results of the jsp page to be viewed in a Ms-Word application.
<%@ page language="java" contentType="application/msword"%>
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Opening MS Word
It's not a secret anymore!