Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

downloading file from jsr 168 application

 
Sunil krishnatry
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
May be this is not the right question.
 
Durga Krishna
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • 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 ]
 
Ina Bumstein
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic