Hi, I'm testing the ajax Anchor tag ( http://struts.apache.org/2.x/docs/ajax-tags.html#AjaxTags-anchorTag). Mi jsp page looks like:
<%@ page contentType="text/html; charset=UTF-8" %> <%@ taglib prefix="s" uri="/struts-tags" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title><s:text name="Home.title"/></title> <s:head theme="ajax" /> <link rel="shortcut icon" href="favicon.ico" /> </head> <body> <s:div theme="ajax" id="div1">Div 1</s:div> <s:url id="ajaxTest" value="/AjaxTest" /> <s:a id="link1" theme="ajax" href="%{ajaxTest}" targets="div1">Update divs</s:a> </body> </html> The AjaxTest action returns a "Hello" content, but when I click in the link, the page is reloaded and the browser displays only a "Hello" page instead of the div1 div with the new content and the link1 link. What I'm doing wrong? (I'm working with Struts 2.0.6)