Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Response-SetContentType

 
Akhil Maharaj
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All ,
I am trying to run the Servlet code to down load the JAR , programme given in HFSJ-Chapter 4 , page 129 .

Where do I have to put the /bookCode.jar ? I keep getting the error that bookCode.jar is not found.

I am using Tomcat 6.0.14 .

Thanks
Akhil
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jar files are normally stored in de WEB-INF/lib directory in the webapplication.
 
Akhil Maharaj
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just realized that the file needs to be in the root of the web-application as it is given as /bookCode.jar .

Now the code is working . However the size of the file , that I am downloading is 10.2MB where as size of the original source file is 86KB .
I don't understand why it is more after downloading ?

Thanks
Akhil
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic