It's not a secret anymore!
The moose likes Other Java Products and Servers and the fly likes Download Link ...?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Download Link ...??" Watch "Download Link ...??" New topic

Download Link ...??

Tapan Thakkar

Joined: Mar 09, 2010
Posts: 24
hello friends i am using liferay portal 5.2.4.
i am creating a jsp page which provide a link to download a file stored at particular location.

but i tried a lot but didn't found a solution so please help me...

the code i have tried is....

project name is try3-portlet and file which i want to download is kept in try3-portlet/docroot/WEB-INF/data/(any file).
<a href="<%=renderRequest.getContextPath()%>/docroot/WEB-INF/data/test.xml">Google</a>

when i execute this code it gives error like....

The requested resource was not found. and
I agree. Here's the link:
subject: Download Link ...??
It's not a secret anymore!