strut1+ztree 总是报语法错误

挖掘机不好开 发布于 2013/12/13 13:39
阅读 108
收藏 0

<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
 <link rel="stylesheet" href="<c:url value='/js/zTreeStyle/zTreeStyle.css'/>" type="text/css">
 <script type="text/javascript" src="<c:url value='/js/jquery.js'/>"></script>
 <script type="text/javascript" src="<c:url value='/js/zTreeStyle/jquery.ztree.all-3.1.js'/>"></script>
  </head>
  <body>
    <ul id="treeDemo" class="ztree"></ul>
    <iframe name="dataFrame"></iframe>
  </body>
  <script type="text/javascript">
   $(function(){
    var setting = { };//设置一组属性
    var nodes = [
     {
      name:'第一个',
      children:[
       {
        name:'第一个孩子',
        url:'http://www.baidu.com',
        target:'_new'
       },
       {
        name:'第二个孩子'
       }
         ]
     },
     {
      name:'我是第二个'
     }
    ];
    $.fn.zTree.init($("#treeDemo"), setting, nodes);
   });
   
  </script>
</html>

struts1

    <action path="/shop/viewCategoryOrgInfo" type="com.ibatis.struts.BeanAction"
      name="catalogBean" scope="session"
      validate="false" >
      <forward name="success" path="/catalog/orginfo.jsp"/>
    </action>

 

action

List<Org> orgList = new DTAuthorityDataSourceFactory().getAuthorityDataSource(" http://172.16.60.143/manager/rpc/ws/orgserver?wsdl").getAllOrgs();
                   request.getSession(false).setAttribute("orgTree", getResult(orgList));
                   return mapping.findForward("success");
                  }
                 
                  method = form.getClass().getMethod(methodName, null);
                  forward = (String) method.invoke(form, null);

用别的例子都可以

一进去就报语法错误,求解

加载中
返回顶部
顶部