Ste*_*all 3 java jsp struts taglib
我有以下内容:
<html:select property="myMap(abc)">
但是,我真正需要做的是abc从java类的静态成员中提取字符串.
abc
我觉得有点像
<html:select property="myMap(<%=MyClass.FIELD%>)"> ,但那没用.
<html:select property="myMap(<%=MyClass.FIELD%>)">
这里的语法是什么?
小智 5
请尝试以下方法:
<% String name = "myMap(" + MyClass.FIELD + ")"; %> <html:select property="<%=name%>">
归档时间:
15 年,4 月 前
查看次数:
907 次
最近记录: