Struts 標籤

<bean:define id="productintroduce" name="xxfbmore" property="title" type="java.lang.String"></bean:define>
										<%=(productintroduce.length()>=25?productintroduce.substring(0,25)+"...":productintroduce)%>



當標籤裏字符串太長了。可定義一個標籤。再截取

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章