I have a page configured as follows: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>Test</title> <@s.head theme="ajax" /> <link rel="stylesheet" type="text/css" href="stylesheets/global.css" /> </head>
and later in the body <@s.url id="bars" value="barsList.action" /> <@s.form action="addFoo" method="add"> <@s.autocompleter theme="ajax" href="%{bars}" name="bar" /> <@s.submit value="OK" action="addFoo" method="add"/> <@s.submit value="Cancel" action="addFoo" method="cancel"/> </@s.form> I get the following error when the page is rendered: on line 56, column 33 in provider/addAppointment.html s.autocompleter not found. The problematic instruction: ---------- ==> user-directive s.autocompleter [on line 56, column 33 in provider/addAppointment.html] in user-directive s.form [on line 55, column 25 in provider/addAppointment.html] ---------- Java backtrace for programmers: ---------- freemarker.core.InvalidReferenceException: on line 56, column 33 in provider/addAppointment.html s.autocompleter not found. at freemarker.core.UnifiedCall.accept(UnifiedCall.java:136) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.Environment.visit(Environment.java:233) at freemarker.core.UnifiedCall.accept(UnifiedCall.java:116) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:196) at freemarker.core.Environment.process(Environment.java:176) at freemarker.template.Template.process(Template.java:232) at org.apache.struts2.views.freemarker.FreemarkerResult.doExecute( FreemarkerResult.java:168) at org.apache.struts2.dispatcher.StrutsResultSupport.execute( StrutsResultSupport.java:178) at com.opensymphony.xwork2.DefaultActionInvocation.executeResult( DefaultActionInvocation.java:343) at com.opensymphony.xwork2.DefaultActionInvocation.invoke( DefaultActionInvocation.java:248) What am I missing. Any help would be most appreciated. Regards, Rohit