Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I send servlet response to javascript?

 
suchi patil
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All Forumites,
I have javascript on html page which when loaded, sends parameters to servlet. Now I want to get the information/reply back from the servlet and update only particular area of the same html page where this information fetched needs to be displayed.
Is there any way to do this?
Regards,
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know, that's what AJAX is good for.

Moving to HTML and JavaScript...
 
Niki Nono
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
or iframes.
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's an AJAX faq: https://blueprints.dev.java.net/ajax-faq.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic