Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Ajax POST to upload a file to resource portlet and download a file back  RSS feed

Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have the following functional requirement:

- a form have a file input
- once user clicks submit, the page should stay at there
- server side converts the input file and then return back a file to user to download

i have done:
- using ajax to post the file to a resource mvc portlet (serveResource)
- using portlet output stream to write back the file being download...

my problem is:
- the ajax call could not go to complete state (cannot alert something after the ajax call)
- the file cannot be downloaded even though i write something to output

my another use case works fine if using GET in ajax call...

any hints ?? seems ajax cannot post to an url and then get something back, is it true ?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!