我在struts-tags.tld文件中找到了那个标签,里面这样写的不知道是不是你想说的:<tag> <name>property</name> <tag-class>org.apache.struts2.views.jsp.PropertyTag</tag-class> <body-content>empty</body-content> <description><![CDATA[Print out expression which evaluates against the stack]]></description> <attribute> <name>default</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description><![CDATA[The default value to be used if <u>value</u> attribute is null]]></description> </attribute> <attribute> <name>escape</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description><![CDATA[ Whether to escape HTML]]></description> </attribute> <attribute> <name>id</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description><![CDATA[id for referencing element. For UI and form tags it will be used as HTML id attribute]]></description> </attribute> <attribute> <name>value</name> <required>false</required> <rtexprvalue>true</rtexprvalue> <description><![CDATA[Value to be displayed]]></description> </attribute> </tag> 这个是那个标签的完整配置,红色为你说的是吗
2.按理由这个标签是合法的啊 如果有也不会显示出来啊, 请把你显示查询数据的页面 发出来看看
<name>property</name>
<tag-class>org.apache.struts2.views.jsp.PropertyTag</tag-class>
<body-content>empty</body-content>
<description><![CDATA[Print out expression which evaluates against the stack]]></description>
<attribute>
<name>default</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description><![CDATA[The default value to be used if <u>value</u> attribute is null]]></description>
</attribute>
<attribute>
<name>escape</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue> <description><![CDATA[ Whether to escape HTML]]></description>
</attribute>
<attribute>
<name>id</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description><![CDATA[id for referencing element. For UI and form tags it will be used as HTML id attribute]]></description>
</attribute>
<attribute>
<name>value</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<description><![CDATA[Value to be displayed]]></description>
</attribute>
</tag>
这个是那个标签的完整配置,红色为你说的是吗
<td align="center" bgcolor="#E9F4FF" class="kctx_zi1"><font color="red" size="3"></font> <strong>提问者</strong></td>
<td align="left" bgcolor="#FAFAFA" class="kctx_zi2" > <s:property value="messageList[0][1]"/></td>
</tr>
<tr>
<td align="center" bgcolor="#E9F4FF" class="kctx_zi1"><font color="red" size="3"></font> <strong>提问内容</strong></td>
<td align="left" bgcolor="#FAFAFA" class="kctx_zi2"> <s:property value="messageList[0][3]" /></td>
</tr>
这样会报错? 不可能吧,肯定不是escape的问题