File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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