Html table ignoring newline characters in a string
Posted on 2008-10-30
Hi, I'm trying to display SQL, which is stored as a string, in a table.
When I debug i can see that the newline characters are in the string, but when it displays its just a big clump.
this is what i have on my jsp page:
<tr class="tableHeader"><th>Name</th><th><bean:write name="Query" property="name"/></th></tr>
<td class="TableRowH" align="right">SQL Statement:</td>
<td class="TableRowH" ><bean:write name="Query" property="sql" filter="false"/></td>
and the string looks like: select \n\t \t columns from table where condition...
so how do it get the table to recognize the newline characters?