我正在使用Toast编辑器库,我想在td或textarea中显示文本。例如,如果
hi存储在数据库中,则它也将在td标记中显示为
hi文本。
@RequestMapping(value = "/noticeView", params = { "num" }, method = RequestMethod.GET)
public String noticeView(@RequestParam("num") Integer num, Model model)
{
Notice notice = newsService.selectNoticeDetail(num);
model.addAttribute("notice", notice);
return "news/noticeView";
}
<form id="writeForm" action="" method="POST">
<input type="hidden" name="num" id="num" th:value="${num}"/>
<div id="sb-nform">
<fieldset>
<table class="form_tbl">
<tbody>
<tr>
<th th:text="${notice.title}"></th>
</tr>
<tr>
<td th:text="${notice.contents}"></td>
</tr>
</tbody>
</table>
</fieldset>
</div>
</form>