template可以吗?我看一下它的tld一下。
不过说实话,这个问题上周讨论过了,你看前面的帖子吧。
我的土方法是这样子的。
<%
Object obj = pageContext.getAttribute("beanPropertyName") ;
%>
<template:put name="title" content="<%=obj%>" direct="true"/>
不过说实话,这个问题上周讨论过了,你看前面的帖子吧。
我的土方法是这样子的。
<%
Object obj = pageContext.getAttribute("beanPropertyName") ;
%>
<template:put name="title" content="<%=obj%>" direct="true"/>
<html:submit property='submit' value='<bean:message key=".......
也是照你这么做的?
<html:submit>
<bean:message key="test"/>
</html:submit>http://www.experts-exchange.com
下一版本将要支持。只能用Tongates(文文)的法子。
<html:submit>
<bean:message key="test"/>
</html:submit>
是个好办法,但很多标签不能这样做:例如
<html:text>
<bean:message key="test"/>
</html:text>
就不行了。
对于Bean则好办些,struts标签中,许多标签可直接用Bean的值,例如《JSP编程指南(第二版)》777页的例子:
<html:link page="/addToCart.do" namw="cd" property="mapping">又如《JSP Web 编程指南》537页的例子:
<html:select property="department">
<html:options name="departmentList">
</html:select>