Hello,

Has anyone managed to get a multipart/form-data submission working with the
ajax theme?
This is what I've got so far:

<s:form namespace="/nodecorate" action="myaction"
enctype="multipart/form-data" method="post">
   <s:file value="image" name="image"></s:file>
   <s:textfield value="title" name="item.title"/>...

   <s:submit theme="ajax" targets="useritems" value="submit"></s:submit>
</s:form>

Which looks like it's almost working but the target div updates with
'[object HTMLDocument]' and the action never gets invoked.
If i remove the s:file element from the form then everything works as
expected with the div updating with the result from the action.

This looks to me like a problem with dojo as opposed to Struts2, I'm using
version 2.0.6 by the way.
Has anyone else encountered this or have any ideas?

Any help appreciated.
Thanks,

Jack

Reply via email to