Problem with jstree

Problem with jstree

Hi all, few days ago i try to implement a tree with jquery and jstree plugin in my web application.
now i have a little problem (i hope :) ), the problem is when i use this code in jsp page the plugin work correctly
  1. <script type="text/javascript">
                         $("#gruppoTree").jstree({
                            "core" : { "initially_open" : [ "root" ] },
                            "html_data" : {
                                "data" : "<li id='predef_1' class='open' style='padding-left:50px'><div style='width:300px;margin-left:20px;' class='nodeTree'><table border='0' width='300px'><tr><td colspan='2'>GRUPPO LIORE</td><td></td></tr><tr><td colspan='2'>SNDG: 27320058        </td><td></td></tr><tr><td>Banca clone: 01025</td></tr><tr><td colspan='2'>Filiale di riferimento: 03100</td><td align='right' valign='middle'>31<a href='#' onclick='javascript:callSintesiGrp(27320058        )'><img style='border:0' src='/portalAbci0/img/abc.anagraficaGruppo.G.gif'/></a></td></tr></table><div class='tree' style='border-top:1px solid black;height:20px;'><div class='open'>&nbsp</div></div></div><ul class='sottoramo' style='padding-left:0px;'><li id='predef_2'><div style='border-top:1px solid white;margin-left:40px;' class='contenitore'><div class='nodeTree' style='margin-left:20px;'><table border='0' width='299px'><tr><td colspan='2'>ARMRIVER SRL</td><td></td></tr><tr><td colspan='2'>SNDG: 0000000017905016</td><td></td></tr><tr><td>Banca clone: 01025 - NSG: <a class='vocelink' href='#' onclick='callSintesiCliente(7245945163000)' >7245945163000</a></td></tr><tr><td colspan='2'>Filiale di riferimento:      </td><td></td></tr><tr><td colspan='2'>NSG prevalente: SI</td><td></td><tr><td colspan='2'>Cliente condiviso: SI</td><td></td><td align='right'>30</td></tr></table><div class='tree' style='height: 20px; border-top:1px solid'><div class='closed'>&nbsp</div></div></div></div></ul></li></ul></li>"
                            },
                            "plugins" : [ "themes", "html_data" ]
                        });
                    </script>







but my problem is that my html code is generate dynamically in java class.The java class return an object call stutturaAlbero.Now in my jsp page i take this object from request but if i try to use this code in the result page is empty box.


  1. <script type="text/javascript">
                         $("#gruppoTree").jstree({
                            "core" : { "initially_open" : [ "root" ] },
                            "html_data" : {
                                "data" : "stutturaAlbero"
                            },
                            "plugins" : [ "themes", "html_data" ]
                        });
                    </script> 







can u help me?i don't understand where is the error...i'm so newbie with jquery..

And sorry for my bad english....