• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

downloading file from jsr 168 application

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to download a text file from a jsp. Portal server is VAP.
This appplication is deployed and shared to an other site in the portal.

controls from a jsp has been forwarded to the above jsp. Since this is an portlet application so I can not set header,content-type from the first jsp.

Right now whole file is being displayed on browser.
I can also give the code if required.
 
Sunil krishnatry
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
May be this is not the right question.
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am also having the same problem.I woked on that for many days,But i couldn't find a solution.But what i came to know is , it is not possible to download a file directly from the porlet.You should go to a non-portlet url.

Please see the link below..

http://opensource.atlassian.com/confluence/spring/pages/viewpage.action?pageId=3132
[ October 03, 2007: Message edited by: Durga Krishna ]
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
As I understand if I need to download file the separate servlet should be created.
Maybe you could define steps how you did that?
The functionality I need is to give user possibility to download selected file which is stored in DB.
Thanks in advance.
Ina
 
When people don’t understand what you are doing they call you crazy. But this tiny ad just doesn't care:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic