【发布时间】:2021-08-10 04:26:08
【问题描述】:
我在jsp中使用JSTL,想在textarea中输出值
<tr>
<th scope="row">SMS Before Inst</th>
<td colspan="7"><textarea cols="20" rows="5" placeholder="SMS Content" id=smsMessage name="smsMessage">
Time setting is
<c:choose>
<c:when test="${CTSSessionCode=='M'}">
Morning
</c:when>
<c:when test="${CTSSessionCode=='E'}">
Everning
</c:when>
<c:otherwise>
OTHER
</c:otherwise>
</c:choose>
Date
<c:out value="${requestDate}" ></c:out>
,We will contact later
</textarea></td>
</tr>
在里面,CTSSessionCode = M 是 Morning,CTSSessionCode = E 是 Everning,requestDate 是日期,但是当我运行它时,它的输出是空白和空格字符。
如何解决问题?
【问题讨论】: