Hi, <div><br></div><div>I use the code, for help:</div><div><div><%@ page  import="java.io.FileInputStream" %></div><div><%@ page  import="java.io.BufferedInputStream"  %></div><div><%@ page  import="java.io.File"  %></div>
<div><%@ page import="java.io.IOException" %></div><div><br></div><div><br></div><div><%</div><div><br></div><div>   String filepath="/data/<a href="http://jboss-4.2.3.GA/server/default/deploy/opencms.war/WEB-INF/packages/modules/br.com.myproject_0.1.zip">jboss-4.2.3.GA/server/default/deploy/opencms.war/WEB-INF/packages/modules/br.com.myproject_0.1.zip</a> ";</div>
<div><br></div><div>BufferedInputStream buf=null;</div><div>   ServletOutputStream myOut=null;</div><div><br></div><div>try{</div><div><br></div><div>myOut = response.getOutputStream( );</div><div>     File myfile = new File(filepath);</div>
<div>     </div><div>     //set response headers</div><div>     response.setContentType("text/plain");</div><div>     </div><div>     response.addHeader("Content-Disposition","attachment; filename=br.com.myproject_0.1.zip");</div>
<div>     response.setContentLength( (int) myfile.length( ) );</div><div>     </div><div>     FileInputStream input = new FileInputStream(myfile);</div><div>     buf = new BufferedInputStream(input);</div><div>     int readBytes = 0;</div>
<div><br></div><div>     //read from the file; write to the ServletOutputStream</div><div>     while((readBytes = buf.read( )) != -1)</div><div>       myOut.write(readBytes);</div><div><br></div><div>} catch (IOException ioe){</div>
<div>     </div><div>        throw new ServletException(ioe.getMessage( ));</div><div>         </div><div>     } finally {</div><div>         </div><div>     //close the input/output streams</div><div>         if (myOut != null)</div>
<div>             myOut.close( );</div><div>          if (buf != null)</div><div>          buf.close( );</div><div>     }</div><div>  </div><div>%></div><br><div class="gmail_quote">2012/2/8 Christian Steinert <span dir="ltr"><<a href="mailto:christian_steinert@web.de">christian_steinert@web.de</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 08.02.2012 17:43, Deiverson Silveira wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi List,<br>
<br>
How can download module exported?<br>
<br>
Similar download logfile in Administration>Workplace tools....<br>
<br>
</blockquote></div>
I don't think you can download the module directly. Modules are only exported into the file system, into the folder WEB-INF/packages/modules of the opencms webapp. You have to grab the file from there, I think<br>
<br>
Kind regards<br>
Christian<br>
______________________________<u></u>_________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-<u></u>bin/mailman/listinfo/opencms-<u></u>dev</a><br>
<br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><i><div><span style="font-style:normal"><i><div><span style="font-style:normal"><i><div style="display:inline!important"><span style="font-style:normal"><i><a href="http://www.solutioncms.com" target="_blank">www.solutioncms.com</a></i></span></div>
</i></span></div><div><span style="font-style:normal"><i><span style="font-style:normal"><i><div><span style="font-style:normal"><i><div style="display:inline!important"><span style="font-style:normal"><i><span style="font-style:normal"><i><div style="display:inline!important">
<i>The Brazilian </i><span style="font-style:normal"><i><div style="display:inline!important"><span style="font-style:normal"><i><span style="font-style:normal"><i><div style="display:inline!important"><i>Official Provider OpenCms</i></div>
</i></span></i></span></div></i></span></div></i></span></i></span></div></i></span></div></i></span></i></span></div></i></span></div></i><br>
</div>