struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wild_oscar <>
Subject Ajax form submit - problem with Struts2 annotations?
Date Mon, 19 Nov 2007 12:00:55 GMT

I tried following the Ajax tutorial in ,
adapting it to a test application I already had.

I have a weird behaviour with a form submit:

			<s:form action="user" method="save" >
			    <s:textfield id="id2" name="userid" />
				<s:submit action="user" method="save" theme="ajax"/>

This code does not trigger the Save method of the UserAction action. If I
add an execute() method, it will trigger this method of the action. (note
that I have tried the s:submit without action and method parameters - they
are already in the action - without any success).

If I remove the "ajax" theme of the submit action, it will execute the save

I use annotations for struts2 actions. Is there any incompatibility between
dojo and annotations?

An s:a link set to the save() method works well. I tried this s:a link:

<s:url id="urlId" action="user" method="save">
					<s:param name="id" value="%{userid}" />
				<s:a id="xxx" theme="ajax" href="%{urlId}" targets="persons" 

Does anyone know why the submit button does not work?
View this message in context:
Sent from the Struts - User mailing list archive at

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

View raw message