You need create a direct link to a file not a portlet URL .
For static file use request.getContextPath()
For dynamic file create an URL to a servlet in the same web application and pass data to
it using PortletSession.APPLICATION_SCOPE.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987290#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...