从list里读取数据在jsp中的textarea都在一行显示,怎么换行显示?
<textarearows="<%=Success.list.size()%>"cols="100"readonlyname="show"><%for(inti=0;i<...
<textarea rows="<%=Success.list.size() %>" cols="100" readonly name="show">
<%
for(int i=0;i<Success.list.size();i++){
VolumeWeightBean vb = new VolumeWeightBean();
vb = (VolumeWeightBean)Success.list.get(i);
%><p><%=vb.getUsername()%></p><%
}
%>
</textarea> 展开
<%
for(int i=0;i<Success.list.size();i++){
VolumeWeightBean vb = new VolumeWeightBean();
vb = (VolumeWeightBean)Success.list.get(i);
%><p><%=vb.getUsername()%></p><%
}
%>
</textarea> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询