THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||
---|---|---|---|---|
| ||||
<div id="div1">Div 1</div> <div id="div2">Div 2</div> <s:url id="ajaxTest" value="/AjaxTest.action" /> <s:a theme="ajax" href="%{ajaxTest}" targets="dev1div1,dev2div2">Update divs</s:a> |
If the anchor tag is used inside a form (href is not required on this case), the form will be submitted asynchronously:
...