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.

Similar Messages

  • 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

  • Announcement of JNDI Tree Browser

    Announcing the Java Naming and Directory Interface[tm] (JNDI) Tree Browser, which can be used to view the objects that are bound to the JNDI tree of a Sun[tm] ONE Application Server instance.
    That way, you can verify the resource names before adding them to the lookup code and thus minimize programming errors.
    The JNDI Tree browser can be found at
    http://sunonedev.sun.com/building/tech_articles/jnditree_ug.html

    I did not find some click-able things in your instruction. But I figured out.
    There should not be "index.html" in the url. It should be:
    http://localhost:81/jnditree/jndiTree
    Your should mention the default port number.
    It seems that when you call:
    NamingEnumeration namingenumeration = initialcontext.listBindings(s);
    you get different result if you call from servlet or from remote
    java application client. For example, remote java application
    client can not see the following:
    jdbc and sub-names.
    ducksbankpool
    MDB_CONTAINER_..... things
    Is it designed in that way or it is a bug, or somthing wrong
    is wrong on my side?
    Your jndi brower is a servlet (jsp). How can I get above
    jndi names from remote client?

  • JS Tree Browser

    I am using a JS Tree Browser in my JSP page. It renders perfectly, but when I click a - to collapse a node with children, nothing happens. It seems to be wanting to invoke some javascript, but beyond that I cannot make out what is happening. Any ideas?

    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.

  • 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 ?

  • 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 '='?

  • Error Compilation When I browse JSP with bean, please Help Me

    Hello,
    I am new in EJB. I have a problem that I am not understand. please help me.
    I have write my bean and deploy it using JRUN server. The name is SpellCheck.jar
    But when I called the bean from JSP page, always error. Here is my JSP page.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <jsp:useBean id="help" scope="request" class="projsp.SpellCheck"/>
    <jsp:setProperty name="help" property="*"/>
    <html>
    <head>
    <title>Untitled</title>
    </head>
    <body>
    You Entered the input,
    <b>
    <%= request.getParameter("word") %>
    </b>
    <br>
    The processed output is:<br>
    <%= integer.parseInt(request.getparameter("mode"))==1 ?help.reverse():""+help.check() %>
    </body>
    </html>
    and the error messages is:
    Compilation error occured:
    allaire.jrun.scripting.DefaultCFE:
    Errors reported by compiler:Compilation of file 'C:\Program Files\Allaire\JRun\servers\default\veronika\WEB-INF\jsp\jrun__wordpro2ejspc.java' failed with no errors. Please check that your compiler is a working compiler.
    at allaire.jrun.scripting.JavaCompilerService.compile(../scripting/JavaCompilerService.java:100)
    at allaire.jrun.jsp.Translator.compilePage(../jsp/Translator.java:247)
    at allaire.jrun.jsp.Translator.translate(../jsp/Translator.java:399)
    at allaire.jrun.jsp.Translator.translate(../jsp/Translator.java:92)
    at allaire.jrun.jsp.JSPTranslator.translate(../jsp/JSPTranslator.java:75)
    at allaire.jrun.jsp.JSPTranslator.translate(../jsp/JSPTranslator.java:67)
    at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:216)
    at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:196)
    at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416)
    at allaire.jrun.session.JRunSessionService.service(../session/JRunSessionService.java:1082)
    at allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270)
    at allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDispatcher.java:89)
    at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552)
    at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542)
    at allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364)
    at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115)
    at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
    at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)
    but if I delete the syntax for calling Bean (usebean, setProperty, and request.getParameter) the browser run properly. Can anybody help me, please?
    thanks
    Veronika

    Hi Veronika,
    The <jsp:usebean> is used for only javabeans not EJB (Enterprise javabean). You said that you have deployed SpellCheck.jar to the JRun server. So that must be an EJB. Where are you accessing this EJB from in your JSP? ARe you doing it inside the projsp.SpellCheck javabean? If yes, can you post some code from the javabean.
    Cheers
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <jsp:useBean id="help" scope="request" class="projsp.SpellCheck"/>
    <jsp:setProperty name="help" property="*"/>
    <html>
    <head>
    <title>Untitled</title>
    </head>
    <body>
    You Entered the input,
    <b>
    <%= request.getParameter("word") %>
    </b>
    <br>
    The processed output is:<br>
    <%= integer.parseInt(request.getparameter("mode"))==1 ?help.reverse():""+help.check() %>
    </body>
    </html>

  • 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.

  • 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

  • Tree-browser for TestStand Report?

    The HTML report format is very inconvenient for browsing a long sequence, especially one with lots of nested sub-sequence calls. There is an article detailing how you can modify the report text sequence to at least put links at the top to more of the failures. This is much better than the default, first-failure report, but it still doesn't seem to link to all of the leaf-node failures).
    This is crying for a tree-style browser (ala the Windows File Explorer) where failures on low-level leaf nodes are noted with colors or symbols on the parent-level containers. Clicking on containers exposes the lower level de
    tails....
    Has anyone seen or done something like this for TestStand?

    Try using this "expand.xsl" Stylesheet to see if it is that for which you are looking. Please give feedback for additional features, etc.
    Attachments:
    Expand.exe ‏54 KB

  • 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.

  • 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.

Maybe you are looking for

  • Dreamweaver images not displaying

    Hi, I have a site that is not displaying images. I have a blank box in the middle of the page that is supposed to display three images every few seconds. I have looked at the code and cannot see that issue. Here is the html fro the index.html I have

  • Why are my mobileme galleries not showing up in the mobileme widget?

    I've got this to work in the past. A few weeks back I deleted and/or changed most of my mobileme galleries. They are there, work fine, ect but in iWeb I cannot get them to show in the drop down menu for the widget! Is this due to any ilife '11 upgrad

  • Posting date changing manually-

    Hi all, when we  release a billing doc to accounting...can we change the posting date manually to the current date. If it is possible, how to do that in SAP . Is there any Transaction code for changing the date. thanx in advance sourav

  • Few basic doubts about accessing AM from backing bean class

    Hi ADF experts, I have just started working in ADF Faces.I made a sample search page.My page is attached to a managed backing bean. I have attached command button on my page to a custom method in backing bean class. So on, click of button this method

  • Animating gif problem in ps elements 7.0

    I am trying to save a file as an animated gif... and when I click to save as a gif, then check the box to save layers as frames, then click save, it doesn't prompt me to the animation window where I select the animation, loop, and speed. How can I ge