HTML代码:
<textarea id="newTopicCptn" name="newTopicCptn" rows="3" cols="30" onkeydown="javascript:if(this.value.length>10) this.value=this.value.substring(0,9);">
<bean:write name="UploadPic" property="newTopicCptn" />
</textarea>