Question:
JSP and AJAX without using PHP?
chinni
2007-09-28 05:55:57 UTC
I have worked on JSPs before and I want to develop a page using JSP and AJAX to build a dynamic drop down list (like the one used in Google Suggest..
http://www.google.com/webhp?complete=1&hl=en
Online searches gave me loads of tutorials using PHP. However, I have no idea of PHP and would like to do it using just JSP and AJAX, with oracle DB if needed...

Is this possible... any examples??
Four answers:
prkushun
2007-09-28 06:23:54 UTC
I don't know if this will help you find how to build a drop down list, but here is Sun's tutorial on using AJAX (with JSP):



http://java.sun.com/javaee/javaserverfaces/ajax/tutorial.jsp



Hopefully that will get you started in the right direction!
savitz
2016-10-05 15:53:05 UTC
AJAX is basically javascript / XML that are all customer-area technologies. subsequently, for risk-free practices motives, customer-area stuff continues to be on the customer area. i assume my declare could be contradicted with using XMLHttpRequest(), the place a customer area script can open a connection to a backended server. (this is, after all, what makes AJAX, AJAX) besides the shown fact that, it does purely that. as quickly as the relationship is opened, you nonetheless choose a server-area script to deal with data processing and circulate. So in short, the respond is not any, you won't be able to use AJAX to speak with a database on the server and not utilizing a backend script.
Christian T
2007-09-28 07:40:47 UTC
The Yahoo UI library has an autocomplete control that is quite robust; check out http://developer.yahoo.com/yui/autocomplete/. It will allow you to fetch your records from a webservice using JSON, or an array in the code.



I wrapped that control as a .NET UserControl for one project and it worked out very well.. You should be able to do something similar in Java.
boinkboing
2007-09-28 06:24:01 UTC
try this:


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...