struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Steinke <>
Subject ajax File Upload
Date Mon, 13 Aug 2007 20:56:25 GMT
Hi There,
i've implemented an Ajax FileUpload using struts 2.0.9. Works fine and 
(since my last mail to this list) redirects to a result jsp.
But the Browser only shows [object HTMLDocument] inside the "targets" 
div instead of the result page.

My Code.
                <s:form action="uploadPicture.action" method="POST" 
                    File(1): <s:file name="upload" accept="image/*"/><br>
                    File (2): <s:file name="upload" accept="image/*"/><br>
                    File (3): <s:file name="upload" accept="image/*"/><br>
                    <s:a  theme="ajax" targets="aTargetDiv" 
executeScripts="false" >upload</s:a>
                <s:div id="aTargetDiv">

xml config:
        <action name="uploadPicture" class="actions.UploadPictureAction" 
                        <result name="input">uploadPictureForm.jsp</result>

result page:
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>View Result</title>
        upload  finished

Thanks a lot for any help,


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message