请问读取数据库值后这样通过textarea来显示?
text类型的表单就能这样读取:<input type="text" name="subName" value='<s:property value="%{info.subOther}"/>' id="subName">
textarea该怎么读呢? <td colspan="6"><textarea name="subIntroduction" id="subIntroduction" cols="130" rows="5" /></td>
info指的是通过struts2+hibernate查询到的表的名称,subOther是某个字段,那么我要读取subIntroduction字段显示到textarea上该怎么来?谢谢!
text类型的表单就能这样读取:<input type="text" name="subName" value='<s:property value="%{info.subOther}"/>' id="subName">
textarea该怎么读呢? <td colspan="6"><textarea name="subIntroduction" id="subIntroduction" cols="130" rows="5" /></td>
info指的是通过struts2+hibernate查询到的表的名称,subOther是某个字段,那么我要读取subIntroduction字段显示到textarea上该怎么来?谢谢!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货