File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Problem to download word file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem to download word file" Watch "Problem to download word file" New topic

Problem to download word file

addy rose

Joined: Jan 22, 2013
Posts: 2
I'm trying to run the below code but it gets me error while downloading from weblogic server.

what wrong m i doing ??

I'm putting the word file in web-inf/lib/ folder. is it the correct way?
Greg Charles

Joined: Oct 01, 2001
Posts: 2968

Hi Addy,

Welcome to JavaRanch!

In the future, please UseCodeTags when posting code. Also, it's very helpful to tell us what sort of problem you're having. That is, give us error messages and stack traces if there are any, or at least tell us what you're expecting and what's actually happening. In this case, there may be a problem finding the file in the lib directory, or it may be a problem with the mime type you're using, or you may not even be hitting the servlet. We need more information from you.
I agree. Here's the link:
subject: Problem to download word file
It's not a secret anymore!