Hi,
Working in a struts environment,im using ajax autocomplete tag for a textbox. Following is the code that I have written in the jsp file for the autocomplete funtionality on textbox with property name as "location".
<%@ taglib uri="/WEB-INF/ajaxtags.tld" prefix="ajax" %>
<script language="JavaScript" SRC="scripts/prototype.js"></script>
<script language="JavaScript" SRC="scripts/scriptaculous/scriptaculous.js"></script>
<script language="JavaScript" SRC="scripts/overlibmws/overlibmws.js"></script>
<script language="JavaScript" SRC="scripts/overlibmws/overlibmws_crossframe.js"></script>
<script language="JavaScript" SRC="scripts/overlibmws/overlibmws_iframe.js"></script>
<script language="JavaScript" SRC="scripts/overlibmws/overlibmws_hide.js"></script>
<script language="JavaScript" SRC="scripts/overlibmws/overlibmws_shadow.js"></script>
<script language="JavaScript" SRC="scripts/ajax/ajaxtags.js"></script>
<script language="JavaScript" SRC="scripts/ajax/ajaxtags_controls.js"></script>
<script language="JavaScript" SRC="scripts/ajax/ajaxtags_parser.js"></script>
<link rel="stylesheet" type="text/css" href="css/ajaxtags.css" />
<link rel="stylesheet" type="text/css" href="css/displaytag.css" />
<td><html:text name="merchantTransactionHistoryForm" property="location" size="20" styleClass="celltext" />
</td>
<ajax:autocomplete
baseUrl="${pageContext.request.contextPath}/getLocation.do?location=1"
source="location"
target="location"
className="autocomplete"
indicator="indicator"
minimumCharacters="1"
parameters="location={location}"/>
Here getLocation is the action which will process the request and im sending location as a parameter with value as 1 along in the request.
Problem is the moment I add the <ajax:autocomplete> tag into my code the jsp page starts giving me erros and does not load.
Can some one tell me where am I going wrong.
Awaiting response.
Thanks
Kaustubh