This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes how to get values from struts to javascript using Ajax Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to get values from struts to javascript using Ajax" Watch "how to get values from struts to javascript using Ajax" New topic
Author

how to get values from struts to javascript using Ajax

santhosh kumar vk
Ranch Hand

Joined: Aug 25, 2009
Posts: 146
hi


I am getting values from database using struts how to get that values using Ajax and how to show the values in text box can You help and can you tell me link to study Ajax




Thanking You
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

This isn't really Struts-specific; as long as you return the values in a way the Ajax callback understands the back-end doesn't matter. So you could return XML, JSON, HTML, whatever.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to get values from struts to javascript using Ajax