wood burning stoves 2.0*
The moose likes Struts and the fly likes Jstree with struts 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Jstree with struts 2" Watch "Jstree with struts 2" New topic
Author

Jstree with struts 2

Sonu Sen
Greenhorn

Joined: Jun 03, 2009
Posts: 17
I am creating a jstree with JSON data in struts 2. I am creating JSON data successfully in Action class but

1. When I print JSON data into console it prints 2 times means my execute method executed 2 times why this happen I cant understand?
2. And please help me, How can I pass my JSON data from Action class to JSP means to Jstree.

If anybody provide me sample code for creating Jstree from struts 2 using JSON it really helpful for me.

Thanks..
debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

hi there,

When I print JSON data into console it prints 2 times means my execute method executed 2 times why this happen I cant understand?

are you using any interceptors?

you can use log4j to check every details.

click the link below, then click "More Widgets", then click "Tree"
http://www.weinfreund.de/struts2-jquery-showcase/index.action

 
wood burning stoves
 
subject: Jstree with struts 2
 
Similar Threads
JSON response to populate listbox
How to print java Map name/value pair through JSON object in JS
Struts2-json plugin not serializing action class to json
Getting message as Invalid JSON
Autocompleter