java实现遍历树形菜单方法——struts.xml实现

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
	<package name="json_default" namespace="/" extends="json-default">
		<action name="getTree" class="org.web.TreeAction" method="getTree">
			<result name="success" type="json">
				<param name="root">treejson</param>
			</result>
		</action>
	</package>
</struts>    

原文地址:https://www.cnblogs.com/a1111/p/12816269.html