Connecting Tech Pros Worldwide Forums | Help | Site Map

Using AJAX tags in JSP

Newbie
 
Join Date: Mar 2007
Posts: 3
#1: Mar 2 '07
Hi all,

This is new member of forum. Can anybody help me out to understand ajax tag library attributes.

i want to use ajax:autocomplete element in my jsp page..

my code is looks like this
__________________________________________________ __________

<%@ taglib uri="/WEB-INF/ajaxtags.tld" prefix="ajax" %>
<html>
<body>
<form>
Make : <input id="model" name="model" type="text" size="30" class="form-autocomplete" />
Model : <input id="make" name="make" type="text" size="30"/>
</form>


<ajax:autocomplete
baseUrl="${contextPath}/??????????"
source="make"
target="model"
parameters="model={model}"
className="autocomplete"
indicator="throbbing"
minimumCharacters="1"/>
</body>
</html>
__________________________________________________ ___________

Now the question is in baseUrl i want to associate an action with this which will give resultset tobe displayed in textbox.

what should be the action code and where it should be placed.. ?

Thanks in advance,

Ne help would be Appreciated......
Janak

acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#2: Mar 2 '07

re: Using AJAX tags in JSP


Is this ajax:autocomplete tag JSP? It'll probably be documented somewhere.
Newbie
 
Join Date: Mar 2007
Posts: 3
#3: Mar 2 '07

re: Using AJAX tags in JSP


Quote:

Originally Posted by acoder

Is this ajax:autocomplete tag JSP? It'll probably be documented somewhere.


Hi Coder,

Thank you for looking at my problem. I have searched various sites. But result is that i got idea abt that tags and tag library.

Now problem is that if you can see my code in that i displayed it using ??????????? in baseurl. What should be placed there if i want to get results from database....?

Thanks,
Janak
acoder's Avatar
Site Moderator
 
Join Date: Nov 2006
Location: UK
Posts: 14,581
#4: Mar 2 '07

re: Using AJAX tags in JSP


I've found this page for you. Here is a quote from that page about baseUrl:
Quote:
URL of server-side action or servlet that processes search and returns list of values used in autocomplete dropdown
Reply