i need to generate a ms-word file from java code (actually a jsp page has to take some details and after submitting it should generate a MS-word file).
Iam unable to find correct examples on the net can you please help...
Secondly, since we don't know what you've tried, or what examples you've tried to follow, or what makes you believe those examples are not correct, it's hard to give you any advice. Please ShowSomeEffort and TellTheDetails.
POI isn't particularly useful for generating DOC files at the moment. Have a look at the AccessingFileFormats FAQ page for links about WordApi and OpenOffice.