• Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaying a JSP which has a tree view using Struts !!!

 
s mahen perera
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I want to display a folder structure like in Windows Explorer, in a JSP file. The String values to be displayed in the nodes are taken from the DB.

Has someone here done a similar thing using Struts.

I already have a JavaScript which will display the folder tree. but here I am using a Scriplet to call the Java code which will dynamically return the JavaScript code needed to display the Tree view.

However, I want to get rid of this Scriplet code.. and use pure Struts to do this

Does Struts have any built in capabilities to help in such a thing, like it has for uploading a file using FormFile.

I can clarify more if needed

Thanks in advance for any help.


Mahen
 
Satish SN
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi mahen

i dont think a utility what u r thinking is available in struts u could very well try for a custom tag which gives u tree structure.

but i used javascript tree structure in the sturts app long back may be around year back
 
s mahen perera
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Kumar .. I found out a tool

check out this

http://struts.application-servers.com/doc/tags/treeview.html

I guess my problem is solved,, anyway have to see how this works
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!