Deep
Deep

Reputation: 471

how to print value in textarea in jsp

         <% 
       out.print("<textarea name='test' id='test'value='"+uabout+"'></textarea>");

            %>

is not working.is there a syntax error.

Upvotes: 5

Views: 39310

Answers (1)

Bhanu Krishnan
Bhanu Krishnan

Reputation: 3726

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.

Upvotes: 13

Related Questions