Hi,
I have a problem.
I'm trying to use autocompleter reading list
from an action using the attribute href.
As the example in the showcase i make this:
File struts.xml like:
<struts>
<package name="default" extends="struts-default">
...
...
...
<action name="sampleAJAX">
<result>/sampleAJAX.jsp</result>
</action>
<action name="JSONList">
<result>/ajax/JSONList.js</result>
</action>
</package>
</struts>
The file JSONList.js has taken from showcase app example
and it is put in the directory ajax in the web content root.
The file sampleAJAX.jsp is:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252"/>
<title>sampleAJAX</title>
<s:head theme="ajax"/>
</head>
<body>
<s:form action="doSearch">
<s:url id="jsonList" value="/JSONList.action"/>
<s:autocompleter href="%{jsonList}" cssStyle="width: 200px;"
autoComplete="true"/>
</s:form>
</body>
</html>
Now running but the list in autocompleter doesn't appear.
Why? What's my mistake?
Thank you in advance
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]