• 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

download file via servlet

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a problem here...
I have a jsp file(test.jsp) which has a form (method=post) to call a servlet(test.class) which does file downloading.
It seems that I need to go through the files calling sequence. The downloading needs to go thru test.jsp - test.class - file to be downloaded(manual.pdf) . When I click submit button on test.jsp. A save as window opens... It says whether you want to download test.jsp or not. There are 2 choices.. open from current location/save as. I choose open from current location. Then the save as window still open, only this time it asks you whether to download test.class or not. I choose open from current location. Finally, the same save as window asks whether i want to download manual.pdf (file I want to download).
Anyone knows why please tell me..
Or this is only tomcat bug?
 
Hardy Chou
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I suspect this is IE 5.5. bug... coz i tried it in netscape... it works
 
reply
    Bookmark Topic Watch Topic
  • New Topic