struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ignacio Enriquez <nach...@gmail.com>
Subject sx:submit and s:file don't work together
Date Tue, 15 Sep 2009 02:48:07 GMT
Hi.
This is a extrange behavior when using the file tag....
s:submit works but sx:submit does not.
Actually sx:submit does nothing. does not even return error. nothing
happens.(the button is pressed but nothing happens)
Why the following does not work? (the code is short )

<s:form method="post" action="UploadFile" enctype="multipart/form-data" >
	<s:file name="upload" label="File"/>
	<s:submit value="normalSUBMIT"/>  <!-- THIS WORKS, I get SUCCESS and
a new jsp rendered-->
	<sx:submit value="ajaxSUBMIT" targets="showUploadFileForm_divId" />
<!-- THIS NOT WORKS -->
</s:form>

where showUploadFileForm_divId is a div container (contains above code).
and UploadFile action only return SUCCESS.

Thanks in advance.

Ignacio.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message