DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: displaying a java collection using ajax

  1. #1
    Join Date
    Oct 2008

    displaying a java collection using ajax

    I have to render a list on a jsp using ajax, however i am not able to figure out how. I understand that i can render text back using ajax, what if i want to render a list or object? Does ajax support this.. Also do i need to use something like dwr to do this? I am trying to figure out if i can use plain ajax(without something like dwr) to do this. Can some one throw some light on this..

  2. #2
    Join Date
    Mar 2007
    Bangalore, India
    Ajax is a communication method. One you get the data into your javascript variables using Ajax, you can do whatever you want with it, including displaying it as a list. I didn't understand how exactly you would want to render data as an 'object'.

  3. #3
    Join Date
    Oct 2008
    Thanks for your response. I have a list in my servlet, this might be huge may be 30-40 rows which is got from the DB dynamically on a button click using ajax. Now i am trying to determine how should i send this list from my servlet to the page. I could send it using plain html and retrive it using xmlHttp.responseText. But i was looking at alternatives. Even sending it as an xml from my servlet is not practical as i have to parse the entire xml i was wondering what other alternatives i have to send data as..can i put the list in scope on ajax request and retrive it on the page?? Well may be not because the browser can understand only just a little lost to do it..any help would be appreciated..

Similar Threads

  1. problem with java script in ajax
    By asmitaisit in forum AJAX
    Replies: 0
    Last Post: 03-02-2007, 10:05 AM
  2. DevX does seem one sideded
    By Rob Abbe in forum Talk to the Editors
    Replies: 44
    Last Post: 01-13-2003, 03:57 PM
  3. Re: C++ vs Java
    By Michael in forum Java
    Replies: 2
    Last Post: 12-31-2002, 05:55 PM
  4. Has Sun Given Up on the Desktop?
    By Lori Piquet in forum Talk to the Editors
    Replies: 114
    Last Post: 10-10-2002, 06:01 AM
  5. learning c# very confusing.
    By Mike Tsakiris in forum .NET
    Replies: 11
    Last Post: 10-04-2002, 05:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center