• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem running the download JAR application

 
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all. I tried out the download jar file application from HFSJ book chapter 4. Here is my code -

web.xml



CodeReturn.java


the url that i am using to run the application is
http://localhost:8080/codeReturn/readfile.do
After this i am getting a download dialog box that asks me whether i want to download a "readfile.do" file, instead of the catalina.jar file as said in the CodeReturn.java source code.

The file gets downloaded by the name readfile.do, 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 readfile.do 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 !
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic