<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
	"-//Apache Software Foundation//DTD Struts Configuration 2.5//EN"
	"http://struts.apache.org/dtds/struts-2.5.dtd">

<struts>
	<package name="filedownload" extends="struts-default" namespace="/filedownload">

        <default-action-ref name="download"/>

        <action name="index">
            <result>/WEB-INF/filedownload/index.jsp</result>
        </action>

        <action name="download" class="org.apache.struts2.showcase.filedownload.FileDownloadAction">
            <param name="inputPath">/images/struts.gif</param>
			<result name="success" type="stream">
                <param name="contentType">image/gif</param>
                <param name="inputName">inputStream</param>
                <param name="contentDisposition">filename="struts.gif"</param>
                <param name="bufferSize">4096</param>
            </result>
        </action>

        <action name="download2" class="org.apache.struts2.showcase.filedownload.FileDownloadAction">
            <param name="inputPath">/images/struts-gif.zip</param>
            <result name="success" type="stream">
                <param name="contentType">application/zip</param>
                <param name="inputName">inputStream</param>
                <param name="contentDisposition">filename="struts-gif.zip"</param>
                <param name="bufferSize">4096</param>
            </result>
        </action>

    </package>
</struts>
