This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 2771

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.
It is sorta covered in the JavaRanch Style Guide.
subject: Problem to download word file
Similar Threads
Download servlet creates aditional files
Problem displaying pdf
.pptx and .docx problem
video playing/streaming
file download servlet does not work on IE8