File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jstree with struts 2

 
Sonu Sen
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 188
Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic