This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jstree with struts 2
 
Similar Threads
Autocompleter
Struts2-json plugin not serializing action class to json
Getting message as Invalid JSON
How to print java Map name/value pair through JSON object in JS
JSON response to populate listbox