Mam problem z łamaniem tekstu. Piszę stronę z użyciem Javascript.
Przesyłam najpierw formularzem tekst do bazy danych a później pobieram dane z bazy i wyświetlam z tabeli.
Dane pobieram używając ${tamat.name} i tu mam zapisany tekst ale niestety bez złamań tesktu które zostały wprowadzone w formluarzu.
Jak zrobić żeby tu też się to wyświetiło poprawnie
<div id="categoryRightColumn">
<table id="toolsTable">
<c:forEach var="tresci" items="${tresc.rows}" varStatus="iter">
<tr class=${((iter.index % 2) == 0) ? 'lightBlue' : 'white'}>
<td>
${tresci.data}
</td>
<td>${tresci.autor}</td>
</tr>
<tr class=${((iter.index % 2) == 0) ? 'lightBlue' : 'white'} >
<td colspan="2">${tresci.text};</td>
</tr>
</c:forEach>
</table>
<form action="forum" method="post">
<center>
<table id="loginTable">
<tr>
<td>autor:</td>
<td>
<input type="text" name="autor" value="" />
</td>
</tr>
<tr>
<td>treść:</td>
<td>
<textarea name="text" cols="20" rows="5"></textarea>
</td>
</tr>
<tr>
<td colspan="2">
<input type="hidden" name="dodanie" value="true" />
<input type="hidden" name="numer" value="${pageContext.request.queryString}"/>
<input type="submit" value="submit button">
</td>
</tr>
</table>
</center>
</form>
</c:otherwise>
</c:choose>
</div>