<%
out.print("<textarea name='test' id='test'value='"+uabout+"'></textarea>");
%>
is not working.is there a syntax error.
<textarea> does not support the value attribute.
To create a multi-line text input, use the HTML <textarea> tag. You can set the size of a text area using the cols and rows attributes. It is used within a form, to allow users to input text over multiple rows. Specifies that on page load the text area should automatically get focus.
The <textarea> tag defines a multi-line text input control. The <textarea> element is often used in a form, to collect user inputs like comments or reviews. A text area can hold an unlimited number of characters, and the text renders in a fixed-width font (usually Courier).
You can use this code in scripting:
<textarea name='test' id='test'><%=uabout %> </textarea>
OR using JSTL
<textarea name='test' id='test'><c:out value="${uabout}" /> </textarea>
Also, there is no value attribute in textarea tag.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With