Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General 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