This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Struts and the fly likes when using struts2 Json plugin how to dynamically select json to be fetched using getJSON method. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "when using struts2 Json plugin how to dynamically select json to be fetched using getJSON method." Watch "when using struts2 Json plugin how to dynamically select json to be fetched using getJSON method." New topic
Author

when using struts2 Json plugin how to dynamically select json to be fetched using getJSON method.

Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 639
I have created a Struts2 application where on clicking a button it fetches and displays JSON from Struts2 Action. For this I have using Struts2 Json array and javascript method getJSON.

This is working fine.

Now I want this happen dynamically. Which json is fetched should be decided dynamically on passing a parameter. How can this be done dynamically from Sturts2 Action?

Thanks

 
jQuery in Action, 2nd edition
 
subject: when using struts2 Json plugin how to dynamically select json to be fetched using getJSON method.