You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Sanjiv Nagraj <s....@zensar.in> on 2013/08/27 11:55:28 UTC

Problem in downloading a file from a 2.6.0 repository from a link within a JSP

Hi,

We have a Spring MVC 3 based web application, running on Tomcat,  that
fetches content  from a 2.6.0 Apache Jackrabbit repository deployed as a web
app on  a separate Apache Tomcat instance. 

 Code fragment from one of the JSPs - 

<a
href="http://xx.xx.xx.xx:8180/jackrabbit-webapp-2.6.0/repository/default/USE
R_DOCUMENT_AREA/file.pdf"  target="_blank">file.pdf</a>.

When user clicks on the link  "file.pdf",   it gives Error Report  HTTP
Status 403 .
Description  - Access to the specified resource has been forbidden.
[ Browser - Firefox ] 

On copying the same link (  "
http://xx.xx.xx.xx:8180/jackrabbit-webapp-2.6.0/repository/default/USER_DOCU
MENT_AREA/file.pdf" )  in the address bar on a separate tab and hitting
[Enter],  the file gets downloaded.

We are unable to figure out how to download the file, on the same screen,
by clicking on the link itself. 
 
Regards
Sanjiv