can i create & use ms-word files with java?

I am making an application in which I need to write some information into a formatted ms word document. I am familiar with writing into a .txt file, but have no idea how to create / or even add info taken from text fields and insert it into an exixting word file. If anyone has any ideas or code frags I would really appreciate the help. Thanks

[366 byte] By [jcm4444] at [2007-9-27 15:00:47]
# 1
MS's .doc is a top secret propriety format and changes every few months to stop anyone but microsoft being able to write compatible office programs. There's a guide to word 97's (version 8) format here:www.redbrick.dcu.ie/~bob/Tech/wword8.html
shishthemoomin at 2007-7-5 23:01:06 > top of Java-index,Core,Core APIs...
# 2
I don't know much about it but this package seems like it might do what you want: http://jakarta.apache.org/poi/index.html
daney at 2007-7-5 23:01:06 > top of Java-index,Core,Core APIs...
# 3
I just posted about this in the Programming section. I've used POI for Excel with much success and it should work for Word too.
nalenb at 2007-7-5 23:01:06 > top of Java-index,Core,Core APIs...