|
|
Struts2 tree 使用很简单,下面是我用的静态树的,用了freemarker模版,全都是struts2的标签.代码如下:
<#assign s=JspTaglibs["/WEB-INF/struts-tags.tld"]/><html><head><title>Tree标签的例子 - 静态树的例子</title><@s.head theme="ajax" debug="true" /></head><body><div style="float:left; margin-right: 50px;"><@s.tree label="管理系统" id="parentId" theme="ajax"templateCssPath="/struts/tree.css" showRootGrid="true"showGrid="true"><@s.treenode theme="ajax" label="用户管理" id="user"><@s.treenode theme="ajax" label="<a href='view.action'>登录</a>" id="login" /><@s.treenode theme="ajax" label="<a href='listUser.action'>查看用户信息</a>" id="userinfo" /></@s.treenode></@s.tree></div></body></html>
运行效果如图:

但是我想在菜单前添加自己想添加的图片,,这样的效果,如图

没有找到对应的属性,弄了好久都没有进展,我该怎么样添加呢???谢谢大家 |
|