主题:java类在jsp页面引用的问题
public class TreeNode {
String linepre = "";
String linenext = "";
String lineid = "";
TreeNode father;
TreeNode child;
TreeNode brother;
public TreeNode()
{
father=null;
child=null;
brother=null;
}
}// 树结点结构
这样一个类,在jsp页面中怎么用它定义一个类,然后对它初始化啊.
<%@ page import="SQLServer.TreeNode"%>
.................
if(rs.next()){
node.lineid=rs.getString("lineid");
node.linepre=rs.getString("linepre");
node.linenext=rs.getString("linenext");
//treeview.creatTree(node,end);
//treeview.thoghTree(node,end);
%>
为什么实现不了啊?
String linepre = "";
String linenext = "";
String lineid = "";
TreeNode father;
TreeNode child;
TreeNode brother;
public TreeNode()
{
father=null;
child=null;
brother=null;
}
}// 树结点结构
这样一个类,在jsp页面中怎么用它定义一个类,然后对它初始化啊.
<%@ page import="SQLServer.TreeNode"%>
.................
if(rs.next()){
node.lineid=rs.getString("lineid");
node.linepre=rs.getString("linepre");
node.linenext=rs.getString("linenext");
//treeview.creatTree(node,end);
//treeview.thoghTree(node,end);
%>
为什么实现不了啊?