• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with Ajax autocomplete Tag

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic