spring mvc form textarea initial contents
问题 How do I put initial text into a Spring form textarea? The TLD rejects PCData content inside form:textarea. The point of this form is to ask a user to edit/correct some text, so the text has to get into the form in the first place. The JSP page is pulling the text from the model and wants to put it into the textarea. 回答1: You could set the initial value with Javascript. You could use tags to control when you need to set the message in the textbox so the script code will be rendered or not.