Ajax + JSP

Reply

Join Date: Dec 2008
Posts: 2
Reputation: Swapna Gouri is an unknown quantity at this point 
Solved Threads: 0
Swapna Gouri Swapna Gouri is offline Offline
Newbie Poster

Ajax + JSP

 
0
  #1
Jan 23rd, 2009
Hi All
I've created a web page where I'm trying to pull data from the database. My requirement is to populate a combo box from the database automatically, i.e. as and when the db updates, the combo box needs to get updated. I have heard that it's possible with Ajax. Can any one give me some code samples for this. And I'm using servlets as my back end along with JSPs and JSTL to display. So I'll be grateful if anyone can help me with some sample code in Ajax with Java related technologies.

Thanks !
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 1,175
Reputation: stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light 
Solved Threads: 125
Featured Poster
stephen84s's Avatar
stephen84s stephen84s is offline Offline
Veteran Poster

Re: Ajax + JSP

 
0
  #2
Jan 24th, 2009
I do not have any sample but code, but do have some suggestions for mixing Java + AJAX:-

GWT is a great framework for developing Ajax based applications in Pure Java.

jMaki is another AJAX framework which can be used with Java on the Server side.

And I would suggest you checking out JSF (Java Server Faces).
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."

"How to ask questions the smart way ?"
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,651
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 474
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: Ajax + JSP

 
0
  #3
Jan 24th, 2009
> So I'll be grateful if anyone can help me with some sample code in
> Ajax with Java related technologies.

Ajax is a set of technologies and hence doesn't depend on a single language for its implementation. Ajax is simply a asynchronous request sent by the browser using the inbuilt XHR object to the web server and getting back a textual response in a suitable data format[XML, JSON etc].

The way the web server handles the request, processes it and responds to the request is left to the implementation you desire. But if you are looking for a Java based solution for handling Ajax in your JEE web application, the above post is a good starting point.
Last edited by ~s.o.s~; Jan 24th, 2009 at 1:39 pm.
I don't accept change; I don't deserve to live.

Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 1419 | Replies: 2
Thread Tools Search this Thread



Tag cloud for JSP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC