Problem description:
<input type="text" name="name" id="name" value=<%=bean.getName() %> size="12" maxlength="12" />
As shown above, input passes value attribute to obtain the data of the database bean.
But when changing to textarea, this does not work. (Of course there is this data in the database, you can print it out using the out method)
Problem solution:
I thought of building a news-related website a few months ago. The textarea tag was also used at that time.
You can understand it after looking at the code. The example is as follows:
<textarea type="text" name="contents" > <%=bean.getContents() %> </textarea>
Just put the required data in the middle of the tag. !