File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes problem running the download JAR application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "problem running the download JAR application" Watch "problem running the download JAR application" New topic

problem running the download JAR application

Niranjan Deshpande
Ranch Hand

Joined: Oct 16, 2005
Posts: 1277
hi all. I tried out the download jar file application from HFSJ book chapter 4. Here is my code -


the url that i am using to run the application is
After this i am getting a download dialog box that asks me whether i want to download a "" file, instead of the catalina.jar file as said in the source code.

The file gets downloaded by the name, but its actually a catalina.jar file, because when i edit it , i can see the catalina specific
garbage characters. But the point is why is it getting saved as a and not as a catalina.jar ?

I am into the second reading of the book, and i must execute this code as i was unable to execute it during the first reading. Also, in web.xml i have added the mime tags ( not mentioned in the book ), but still the app doesnt work !

Please help me
thanks in advance !

SCJP 1.4 - 95% [ My Story ] - SCWCD 1.4 - 91% [ My Story ]
Performance is a compulsion, not a option, if my existence is to be justified.
I agree. Here's the link:
subject: problem running the download JAR application
It's not a secret anymore!