WebSphere Portal Server - How to download binary file from portlet?

This is Interesting: Free IT Magazines  
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?

2005-10-24, 6:13 pm

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?

2005-10-28, 4:50 pm

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>
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com