ajax树形展示,JavaScript

时间:2012-06-22 07:06:48
【文件属性】:

文件名称:ajax树形展示,JavaScript

文件大小:604KB

文件格式:RAR

更新时间:2012-06-22 07:06:48

ajax JavaScript

package ajax.ch3.treeview; import javax.servlet.ServletException; import javax.servlet.http.*; import ajax.ch3.treeview.*; public class TreeviewServlet extends HttpServlet { public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException { String parentID = request.getParameter("parent");//获得id的值 if (parentID!=null&&!parentID.equals(""))//如果不为null和空 { Category category = new Category(Integer.parseInt(parentID));//创建Category对象 TreeviewElement[] top = category.getChildren();//得到该分类的所有下级分类 response.setContentType("text/html"); java.io.PrintWriter out = response.getWriter(); for(int i= 0;i


【文件预览】:
ajax树形
----treeview()
--------.project(1KB)
--------.mymetadata(297B)
--------WebRoot()
--------.myeclipse()
--------src()
--------.classpath(620B)

网友评论