struts标签输出属性,而属性又是一个Bean,要输入这个Bean里的属性

来源:百度知道 编辑:UC知道 时间:2024/06/18 10:19:07
应该是:struts标签输出属性,而属性又是一个Bean,要输出这个Bean里的属性,换句话说就是输出属性的属性!
只需要struts标签,要是能用EL表达式的话就好了!
<bean:write name="bean" property="bean.属性"/> 这样子可以吗?貌似不行吧,又不是JSTL,jsf等

<bean:write name="bean" property="bean.属性"/>

是这样的<bean:write name="" format="#,###,##">
<base href=\"http://www.mymain.com/myStrutsApp/testing.jsp\">

建议用el来做,bean标签过时了,而且太繁琐,假设你给属性设置的名称为arg,那么你可以${arg.Attribute}来实现,Attribute就是属性的属性.^____^