Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AJAX without struts. Is it possible?

 
suresh pilakal babu
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can I implement AJAX functionality without using struts?

Thanks,
Suresh.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use Perl, C#, VB, CF, ASP, plain text files, etc. Pick anything you fancy.

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64606
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ajax and Struts are completely independent.
 
suresh pilakal babu
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
var url="getuser.jsp" --------1
url=url+"?emp_id="+emp_value---------2

xmlHttp.onreadystatechange=stateChanged ----3
xmlHttp.open("GET",url,true)------4
xmlHttp.send(null)----5

could you please line #4 and #5;
In #4 what is the use of 3rd parameter(true)?
In #5 why sending null value?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any basic article on Ajax will tell you what it means:

http://developer.apple.com/internet/webcontent/xmlhttpreq.html

Eric
 
Veera Sundar
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. you can implement Ajax functionality with out using any frameworks at all, since both are not dependent.

Have a look at this article: Implementing Ajax in Java web application using JQuery
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic