I'm curious to know why the s:file tag breaks an 2.1.6 ajax form resulting in a javascript error "'message' is null or not an object" in IE6 (target div isn't updated). The form, which contains some input tags and a s:file tag, works when the standard s:submit tag is used, but doesn't work with the sx:submit tag. Removing the s:file tag from the form when using the sx:submit tag works. Below is a summary of what works and doesn't work using the "Remote form replacing another div" sample from the showcase: Works (ajax w/out file input): <div id='two' style="border: 1px solid yellow;"><b>initial content</b></div> <s:form id='theForm2' cssStyle="border: 1px solid green;" action='AjaxRemoteForm' method='post'> <input type='text' name='data' value='Struts User'> <sx:submit value="GO2" targets="two"/> </s:form>
Works (no ajax w/file input): <s:form id='theForm2' cssStyle="border: 1px solid green;" action='AjaxRemoteForm' method='post' enctype="multipart/form-data"> <input type='text' name='data' value='Struts User'> <s:file name="file"/> <s:submit value="GO2"/> </s:form> Doesn't Work (ajax w/file input): <s:form id='theForm2' cssStyle="border: 1px solid green;" action='AjaxRemoteForm' method='post' enctype="multipart/form-data"> <input type='text' name='data' value='Struts User'> <s:file name="file"/> <sx:submit value="GO2" targets="two"/> </s:form> Is there a Struts solution (w/out using 3rd party plugins) for an ajax based form submission with files? --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org