473,406 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Using AJAX tags in JSP

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
Mar 2 '07 #1
3 3140
acoder
16,027 Expert Mod 8TB
Is this ajax:autocomplete tag JSP? It'll probably be documented somewhere.
Mar 2 '07 #2
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
Mar 2 '07 #3
acoder
16,027 Expert Mod 8TB
I've found this page for you. Here is a quote from that page about baseUrl:
URL of server-side action or servlet that processes search and returns list of values used in autocomplete dropdown
Mar 2 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Gustavo Amigo | last post by:
Hi, i´ve started a project on sourceforge. It´s called Ajax Pages, it´s a scripting template engine that enables rapid development of Ajax Web-based Applications. I would like you guys to take a...
5
by: McKirahan | last post by:
Yahoo Mail Worm May Be First Of Many As Ajax Proliferates <URL: http://www.ddj.com/189500417?cid=RSSfeed_DDJ_All>
9
by: RBM007 | last post by:
Hello, I have created some pages in the (old) Atlas pages and migrated to AJAX version. After the update I noticed that any page containing ASP.NET AJAX won't compile anymore. Even if the same...
0
by: jobs | last post by:
Pardon the confusion.. Atlas is now Ajax Extensions? Anyways, I;m going through the install process, having installed 1.0 beta, CTP, and the control toolkit. Everything appears to have gone...
3
by: randommale9999 | last post by:
I was wondering how people are able to create ajax applications like star ratings scripts without having bots hit the scripts. I have a star rating script on my site which was getting hit by bots....
1
by: shivendravikramsingh | last post by:
hello friends, actually i have a problem in using conditional statement in ajax function i m tring to describe my problem properly,what i want when i select a value form a combo its vlue is passed...
1
by: Slapoo | last post by:
In my ASP 2.0 web app my system.web tag is nested within a location path tag. This structure breaks all AJAX functionality, causing the 'Sys is not defined' error. When I remove the location path...
3
by: nathanwb | last post by:
I have the following php code, at the top I am pulling a piece of data from a query and I echo the results with no problem, I am using Ajax with this page as well and further down the page when I...
7
by: tokcy | last post by:
hi everyone, i have used tinymce editor in my project, but i have some problem like whenever i am selecting data from database and when i want to wiew the details of that particular section then...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.