|
Home > Archive > WebSphere Portal Server > October 2005 > How to download binary file from portlet?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to download binary file from portlet?
|
|
|
| Can anybody suggest me how can I download binary files from IBM Struts portlets? If to use a servlet how should I make a link to this servlet?
| |
|
| If the servlet is in your portlet project, you can link to the servlet the same way you link to any "resource" in your project (i.e. image, pdf, etc)...
From within a JSP, for example, the url could be generated like this:
<a href='<%=renderResponse.encodeURL(renderRequest.getContextPath() + "/MyServlet")%>'>My Servlet</a>
|
|
|
|
|