Graphical tree in JSP

I wanna write a code that will allow users to make a tree structure at runtime, it must be a web based server site most preferably in JSP

cotton.m,
Unless you are planning to use an applet this won't be happening.Exactly and this is what happened to me when I tried to implement table tree in jsp and javascript, after several approach; it turn out the is no way of controlling the view; then I moved to build the Report based on applet
You don't seem to be aware that JSP code executes on the server. And produces something like HTML. Which is then viewed in the browser.Yes and It is not easy to handle the event on the browser to the server; especially if you want to use one component from Struts or any rich client interface framwork, you will end up adding the whole libraries and different configurations etc.. so there is not light weight approach to extract what you need from these frame work (ZK, Struts, Myfaces etc..)
Regards,
Alan Mehio
London,UK

Similar Messages

  • Exercise / display tree in JSP

    Until recently, I though it was not possible to display a tree
    with JSP pages unless using some "external" code [tag,js,etc.] for
    generating the HTML.
    So I propose you a little challenge:
    - display a tree [for example a directory structure starting from a given directory]
    - in a nested form
    - with no library tags
    - without direct use of "out"
    - <%= ... %> only allowed to display file names
    - with a single JSP

    what you want ommit is all the advantage of the jsp:(()
    without those, why people use jsp?My purpose is only to demonstrate that it is possible to display
    a nested structure with "simplistic" JSP. So, will you take up the challenge ?

  • ABAP Objects - Graphical Tree Structure

    Hi All,
       I have a problem in splitting the container of graphical tree.
        i want to split the left side container which will generally have the tree hierarchy in small size, which can be viewed on the right side in a bigger size by positioning on the necessary portion of left side container.
       Please help me out as in how to split the container. is there any property which has to be set so taht it can be splitted.
    Regards,
    Theja.

    Thejaswi,
    You can do it in two ways. If you want only two divisions then you can use a EASY SPLITTER. If you more parts you can go for a SPLITTER CONTAINER.
    w_custom_contnr  TYPE REF TO cl_gui_custom_container,
    w_split      TYPE REF TO cl_gui_easy_splitter_container,
    w_contnr_top     TYPE REF TO cl_gui_container,
    w_contnr_bot     TYPE REF TO cl_gui_container,
    IF w_custom_contnr IS INITIAL.
      Create Event Receiver
       CREATE OBJECT w_event_receiver.
        IF cl_gui_alv_grid=>offline( ) IS INITIAL.
          CREATE OBJECT w_custom_contnr
                 EXPORTING container_name = c_container.
        Create the splitter control
          CREATE OBJECT w_split
             EXPORTING
               parent            = w_custom_contnr
             ORIENTATION       = 0
               sash_position     = 16
               with_border       = 0
             EXCEPTIONS
               cntl_error        = 1
               cntl_system_error = 2
               OTHERS            = 3.
        Get the containers of the splitter control
          w_contnr_top = w_split->top_left_container.
          w_contnr_bot = w_split->bottom_right_container.
        ENDIF.
        CREATE OBJECT w_tree
    EXPORTING i_parent = w_contnr_bot.
    Regards,
    Ravi
    Note : Please reward the posts that help you.

  • ABAP Objects - Printing Graphical tree

    Hi All,
          I want to print one graphical tree structure into spool or to printer. For this i am currently using
    if_graphic_proxy~print method.I have a button on application tool bar, which when clicked calls the above method. But nothing is hapening.I doubt if the graphical tree is printed.
    Help me out.
    Useful answers will be rewarded.
    Thnx,
    Theja.

    Hi Thejaswi,
    please go through the package SGRB. It has a lot many demo programs as per your requirement. Check out. Hope it helps.
    Lokesh

  • Urgent : Trees in JSP

    hii guys
    i am very new to jsp..i want to display a employee hierachy structure( who reports to whom)..
    current i am using java swing tree and loading it in applet..but this is giving me problem because of the large size of driver file..
    i would like to know if i can embed swing tree or any other tree which jsp supports.i want to update the tree dynamically i.e when the user clicks on a employee i wnat to expand it to show who reports under him...
    plzzz reply very soon..thanks
    sairam

    JSP has no native support for displaying trees. Hence I have created a tag library to solve the problem
    http://www.jenkov.dk/projects/treetag/treetag.jsp
    Jakob Jenkov
    www.jenkov.dk

  • Problem in impelementing tree in jsp using XML

    I am trying to impelemnt "treeview.htc" to impelement tree structure in my jsp page.I am using XML file to get the elements for treenodes.Now My Problem:
    Basically i have one ASP page with me, and there they have done all this things.But when i try to impelement the same thing in JSP it is thrwing me error.
    <b>Error: It is unable to detect the namespace i have mentioned in :>
    IT is not able to detect the "TVNS" namespace..Hence showing error while saving the jsp file</b>
    <code>
    <?XML:NAMESPACE PREFIX=TVNS />
    <?IMPORT NAMESPACE=TVNS IMPLEMENTATION="C:/XMLTREE/treeview.htc" />
    <tvns:treeview id="ctlFilter_TreeFilter" class="clsTreeView"
    defaultStyle="font:normal normal normal 8pt Tahoma;" selectedNodeIndex="0" HelperID="__ctlFilter_TreeFilter_State__" systemImagesPath="C:/XMLTREE/images"
    onexpand="javascript: if (this.clickedNodeIndex != null) this.queueEvent('onexpand', this.clickedNodeIndex)" oncollapse="javascript: if (this.clickedNodeIndex != null) this.queueEvent('oncollapse', this.clickedNodeIndex)"
    oncheck="javascript: if (this.clickedNodeIndex != null) this.queueEvent('oncheck', this.clickedNodeIndex)" onselectedindexchange="javascript: if (event.oldTreeNodeIndex != event.newTreeNodeIndex) this.queueEvent('onselectedindexchange', event.oldTreeNodeIndex + ',' + event.newTreeNodeIndex)" style="height:100%;width:100%;">
         <tvns:treenode Type="And" Expanded="True" Selected="true">
              And<tvns:treenode Type="Property">
                   Buyer Name = "Abukar Hagi, Abdirashid"
              </tvns:treenode><tvns:treenode Type="Property">
                   Buyer Name > "Abukar Hagi, Abdirashid"
              </tvns:treenode><tvns:treenode Type="Property">
                   Buyer Name <= "Abukar Hagi, Abdirashid"
              </tvns:treenode>
         </tvns:treenode>
    </tvns:treeview>
    </code>
    Please help me out .its very urgent.
    Thanks in advance.

    Have you actually been able to get this to work? I tried some of the demos from the MS site and running the html file with the treeview.htc just sends my browser into a state of loading with nothing happening!?!
    This is a webcontrols component which is rather MS specific. As for finding the namespace, are you accessing this page locally or remotely? the namespace location, if run from a JSP, will resolve the C: drive to the one the web browser is running in not your server.
    If you have your htc file in the same dir as the jsp your running, then putting just "treeview.htc" as the namespace whould be fine or add the context path like so:IMPLEMENTATION="<%=request.getContextPath()%>/treeview.htc"Let me know if you actually get this running without a web server. Otherwise it may be the .Net server that renders the page.
    Anthony

  • Urgent help, Tree Viewer JSP

    Has anyone gotten the tree viewer bean to work on a JSP? If so, please give tips on it, or an example of table would be appreciated. I keep getting an error message that my row-set browser is not self-refferencial.
    Thanks

    hi vidyut, thanks for the help. was juz wondering. The file contents tt im supposed to read in and print out contains around 200 similar entries, meaning :
    MEASURE Waist_Full=33.19
    MEASURE Waist_Front=16.06
    MEASURE Waist_Back=17.12
    MEASURE Waist_Height_Front=38.82
    MEASURE Waist_Height_Back=39.73
    MEASURE Waist_Height_Left=39.28
    MEASURE Waist_Height_Right=39.28
    MEASURE Waist_Front_X=43.98
    MEASURE Waist_Back_X=35.04
    MEASURE Waist_Width=11.85
    MEASURE Shirt_Collar=14.88
    MEASURE Neck2Waist_Front=19.64so is the properties object stil the best method to use? To extract the whole string except MEASURE and '='?

  • TREES in JSP

    how can i create Tree like structure in JSP.can i use swings.IF yes what can be the container.
    I am trying to access database and show the data in TREE node like structure.
    Rohit

    <%@ page import="java.util.*"%>
    <jsp:useBean id="TreeBean" class="resourceweb.TreeBean"/>
    <html>
    <head>
    <title>Listing of resources Found</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <STYLE type=text/css>A:visited {
         COLOR: #cc0033
    A:link {
         COLOR: #cc0033
    A:active {
         COLOR: #cc0033
    A:hover {
         COLOR: #ff0033
    </STYLE>
    <script language="JavaScript">
    <!--
    var Open = ""
    var Closed = ""
    function preload(){
    if(document.images){
         Open = new Image(16,13)
         Closed = new Image(16,13)
         Open.src = "img/openfolder.gif"
         Closed.src = "img/closedfolder.gif"
    function showhide(what,what2){
    if (what.style.display =='none'){
    what.style.display='';
    what2.src=Open.src
    else{
    what.style.display='none'
    what2.src=Closed.src
    -->
    </SCRIPT>
    </head>
    <BODY bgColor=white onload=preload()>
    <FONT face=Verdana size=2></FONT><FONT face=Verdana size=2>
    <%
    HttpSession session1 = request.getSession();
    Vector v = (Vector)session1.getAttribute("treeResults");
    String cat = (String)session1.getAttribute("catid");
    String loc = (String)session1.getAttribute("location");
    int i = 0;                                                                                     
    int catid = 0;
    int resid = 0;
    resourceweb.TreeBean c = null;
    String tempType = null;
    GregorianCalendar now = new GregorianCalendar();
    int mth = (now.get(Calendar.MONTH)) + 1;
    int year = now.get(Calendar.YEAR);
    %>
    <%
    //iterate through beans to display category.
    c= (resourceweb.TreeBean)v.elementAt(i);
    while (i < v.size())
         tempType = c.getResourceCategory();
         catid++;
         resid++;
         %>
         //this is where the top level stuff are
         <SPAN id=cat1<%=catid%> onclick=showhide(res<%=resid%>,cat<%=catid%>)
         style="CURSOR: hand; FONT-FAMILY: Verdana; FONT-WEIGHT: bold;">
              <FONT
                   style="TEXT-DECORATION: none">
                   <!-- <IMG id=<%=c.getResourceCategory()%> src="img/closedfolder.gif"> -->
              <IMG id=cat<%=catid%> src="img/closedfolder.gif">
              </FONT>
         <%=c.getResourceCategory()%>
         </SPAN><BR>
         //this is where the second level stuff are.
         <SPAN id=res<%=resid%> style="DISPLAY: none">
         <%
         while((tempType.equals(c.getResourceCategory())) && (i < v.size()))
         %>
         <% if (i == (v.size() - 1)) { %>
              <IMG src="img/lastnode.gif">
              <% }
              else
              {%>
              <IMG src="img/node.gif">
              <% } %>
              <IMG src="img/doc.gif">
              <a href="../servlet/resourceweb.MthViewDispatcherServlet?Action=MthView&ResId=<%=c.getResourceId()%>&Mth=<%=mth%>&Year=<%=year%>&CatId=<%=cat%>&Location=<%=loc%>&View=Tree target=folderFrame"><%=c.getResourceName()%></a>
              <BR>
         <%
         ++i;
              if(i < v.size())
              c= (resourceweb.TreeBean)v.elementAt(i);
         }      %>
         </SPAN>
         <% } %>
    </FONT>
    </BODY>
    </head>
    <frameset rows="170,*" onLoad='initializeTree()'>
    <frame name="banner" scrolling="no" noresize target="contents" src="Menu.html" frameborder="no">
    <frameset cols="150,*">
    <frame name="treeFrame" frameborder="no" src="blank.html">
    <frame name="folderFrame" src="AllResources.html" frameborder="no">
    </frameset>
    </frameset>
    </html>
    This is the jsp that displays the tree, you can either manually code the SPAN_IDs to include watever u want in the tree or you can get the contents of the tree from the database.

  • JS Tree Browser - JSP

    I have inserted a JS Tree Browser Data Web Bean in a JSP page but it doesnot works!! This is the result:
    "Rowset must be self-referential and ViewLink accessor must be defined"
    ... What should I do??...
    Thanks!!
    Johary Pirez.

    You need to prepare the query using the setWhereClauseParams(x) call, before you initialize your data web bean. Otherwise, if you call the methods after you initialize your web bean, the context has already been set and the error occurs.
    You should insert another data web bean into your page somewhere at the top and use it to setup your query and create a view object. You should remove this bean's Render() method since you are only interested in the Initialize() method here. Add your code to prepare the query and create the view object.
    Then when your JS Tree Browser executes, it will be able to call getRowSet() on the View Object you created already.

  • Hierarchical trees in jsps

    Hello:
    Does anyone have any sample code that shows displaying a
    hierarchical tree from a jsp page?
    We're new at jDeveloper and are using xml and xsl
    stylesheets.
    We cannot use the swing control as this requires the client to
    download a 2mb file to their computer.
    Any advice, samples or links for a solution would be greatly
    appreciated.
    Thanks.
    Sheena

    Check out Coldtags suite on http://www.servletsuite.com/jsp.htm
    There is a Tree taglib

  • Using tag library to create a tree in jsp

    Hi,
    I want to create a tree in a JSP page whose node values are obtained from the database. The number of children of a particular node is known only during the construction of the tree.
    Root
    |---Node I
    |----Node I Level 1 Child 1
    |----Node I Level 1 Child 2
    |----Node I Level 1 Child 2 SubLevel Child 1
    |----Node I Level 1 Child 2 SubLevel Child 2
    |---Node I Level 1 Child 2 SubLevel Child 2 Subsub Level1
    |----Node I Level 1 Child 3
    |---Node I Level 1 Child 3 SubLevel Child 1
    |---Node II
    |---Node n
    These node values are obtained from the database. Any early help is appreciated. Helping in tree construction using JSP & Tag Libraries is requested (not swings). Also help me in deploying the same in Tomcat 4.0 server.
    Regards
    Vimal

    I am not very knowledgable in tag libraries. Bust using pure java, you can do something like this:
    Create Node and NodeRenderer java classes. These classes will have methods to access their siblings, parent and its properties and to render itself using HTML code. When you read the database to retreive the tree structure, you can build a hierarchy of nodes. Each Node can render itself and by doing an appropriate traversal, the tree can be rendered.

  • How to display graphics dynamically in JSP

    I use JSP to call a servlet to get the output . The output is in svg format. I do not hope to create a svg file to store the output from servlet. I wope to embed the svg dynamically in the jsp page
    Anybody knows the solution. Many thanks in advance
    Cheers,
    .

    Because the output from Servlet is in text format not binary.
    So the tag <IMAG></IMAG> does not work .
    the output is similar as
    <svg viewBox="0 0 360 270">
    <style type="text/css"><![CDATA[
    .aS{ font-family: monospace; text-anchor: middle;
    font-size: 35px; stroke: Blue; fill: Red; }
    ]]></style>
         <g>
    <text x="60" y="90">+2%</text>
    <polyline points=" 110,80 110,80 210,80 210,80" />
    <text x="60" y="180">-2%</text>
    <line x1="110" y1="170" x2="210" y2="170" />
    <line x1="110" y1="120" x2="210" y2="120" />
    <text x="280" y="130">4:0</text>
    <text x="160" y="200">1</text>
    <text x="110" y="150">-</text>
    <text x="185" y="50">Sample - Name</text>
    <text x="185" y="240">Minutes/km (2003/1/7)</text>
         </g>
    </svg>
    If I keep the output as a **.svg file. then embed it in jsp. it is OK.

  • Tree in JSP

    I am trying to display the values getting from the database and display in the tree to different levels of nodes.I also need to dynamically add a node to the tree.
    So please help me to do the needful if any one has the solution
    thanking you

    http://forum.java.sun.com/thread.jspa?threadID=483984&messageID=2567249

  • Tree view JSp

    hai all,
    i am new to XML. I have the requirement like
    I have a tree structure with parent and child
    It goes upto 30000 records.
    User enters the text and presses submit button the
    coresponding text has to be searched in the tree structure
    and that has to be made selected.
    all the parent node which has the text as child has also
    to be populated in the List box. how can I do this.
    Is it possible to do this in client side ?
    I want help ?
    thanks
    sundar

    Internet Explorer 5 can do it on the client-side. it uses the Active-X plugin as a DOM parser....and you can use javascript with it.

  • Illustrator Vector Graphics - TREES

    Hi - Does anyone know where to get some trees for illustrator in PLAN view??

    I think I found some by searching the USGS (United States Geological Survey) sites.
    I know I found some
    somewhere
    but I forget where. It's been years.
    Will these help (look through the PDF index):
    http://ian.umces.edu/symbols/
    But these are more probably what you're after:
    http://artisansgardens.com/index.html (wait for it...the load-time seems slow)
    Search further:
    http://xrl.us/ou2je (Link to www.google.com)

Maybe you are looking for

  • Can't install Windows 7 on my early 2008 iMac

    Hey Guys, I wanted to install Windows 7 on my iMac 24" (3.06 GHz, 4GB RAM, 8800GS) but everytime I boot up from my CD, it is showing me a black screen with a white flashing cursor. I don't know whats wrong, because 6 months earlier I installed it wit

  • Deferred tax: post down payment clearing individually $2 while f-44

    Dear Experts: We are trying to clearing the Special G/L transaction through T-code : F-44 but facing an error as Deferred tax: Post down payment clearing individually $2. Please find attached screen shot for your reference. Would you please suggest m

  • Problem with QuickTime movie in YouTube

    I uploaded some videos taken with myphone and needed to rotate them, which I did using QT Pro. Looks great. But when I uploaded the video to YouTube it is still the wrong orientation. I spliced three clips together and that worked... just not the rot

  • Calendar, E-mail or other messages show on Lock Screen (iSO 5.0)

    All notifications I have only popup and show in the notification center. However, they dont stick in the Lock screen and keep showing in the center for as long as the event duration. How can the notifications of e-mails, calendar or other message sho

  • Man pages in the wiki?

    Hi all, I think it would be handy to add man pages in the wiki so that an article could refer to it if need be. So the questions are: 1) Has this been discussed before? 2) What do you think of the idea? Cheers, X