Struts.xml
namespace="/stream/streamQuery">
<!-- 进首页方法 -->
class="com.stream.query.action.StreamQueryAction">
index.jsp
<!-- 左侧树形数据请求 -->
<action name="queryTermInfoTree1" method="queryTermInfoTree"
class="com.stream.query.action.StreamQueryAction">
</action>
</package>
页面
tree = new Ext.tree.TreePanel({
region: 'center',
title: '终端列表',
columnWidth:.2,
border : true,
animate : true,
rootVisible: false,
split: true,
height:treePanelHeight,
autoScroll : true,
containerScroll : false, // 随自身或父容器的改变而显示或隐藏scroll
loader : new Ext.tree.TreeLoader({
url: "<%=request.getContextPath() %>/stream/streamQuery/queryTermInfoTree1.action"
<%-- dateUrl : "<%=request.getContextPath() %>/comsview/monitor/statemanager.action" --%>
}),
root : new Ext.tree.AsyncTreeNode({
//设置id,让后台知道应该在何时返回根节点的子点数据
id : '0',
text : '我是根'
})
});
url跳不到指定的action页面,请各位大神帮忙!