my dog learned polymorphism*
The moose likes Portals and Portlets and the fly likes downloading file from jsr 168 application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "downloading file from jsr 168 application" Watch "downloading file from jsr 168 application" New topic
Author

downloading file from jsr 168 application

Sunil krishnatry
Greenhorn

Joined: Sep 25, 2007
Posts: 4
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

Joined: Sep 25, 2007
Posts: 4
May be this is not the right question.
Durga Krishna
Greenhorn

Joined: Apr 05, 2007
Posts: 28
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

Joined: Nov 10, 2007
Posts: 20
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: downloading file from jsr 168 application