<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<%@ taglib prefix="sx" uri="/struts-tags"%>
<%@ taglib prefix="s" uri="/struts-dojo-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Struts 2 AJAX - Tree</title>
<sx:head theme="xhtml" />
<s:head parseContent="true" />
</head>
<body>
<s:tree label="parent" id="parentId" templateCssPath="/struts/tree.css"
showRootGrid="true" showGrid="true">
<s:treenode label="child1" id="child1Id">
<s:treenode label="<a href='#' target='show'>google搜索提示功能</a>"
id="grandchild1Id" />
<s:treenode label="grandchild2" id="grandchild2Id" />
<s:treenode label="grandchild3" id="grandchild3Id" />
</s:treenode>
<s:treenode label="child2" id="child2Id" />
<s:treenode label="child3" id="child3Id" />
<s:treenode label="child4" id="child4Id" />
<s:treenode label="child5" id="child5Id">
<s:treenode label="gChild1" id="gChild1Id" />
<s:treenode label="gChild2" id="gChild2Id" />
</s:treenode>
</s:tree>
</body>
</html>