<s:if test="%{null!=#questions.topic&&#questions.topic.length()>20}">
                  <td><s:property value="%{#questions.topic.substring(0, 20)}" /></td>
</s:if>
<s:else>
<td><s:property value="%{#questions.topic}" /></td>
    </s:else>
刚刚提供的截取字符串的改成这样就对了

 

 

<s:date name="#comments.createTime"  format="yyyy-MM-dd HH:mm:ss" />
时间类型显示格式,页面上这样显示

相关文章:

  • 2021-10-05
  • 2021-09-21
  • 2021-06-27
  • 2021-12-24
  • 2021-12-20
猜你喜欢
  • 2022-02-13
  • 2022-12-23
  • 2021-11-23
  • 2021-10-16
  • 2022-12-23
  • 2021-06-13
相关资源
相似解决方案