This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Download Link ...??

 
Tapan Thakkar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
"http://localhost:8080/web/guest/try3-portlet/docroot/WEB-INF/data/test.xml"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic