"); %> does not work. There is ...">

How to print value in textarea in jsp

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

does not work. There is a syntax error.

+4
source share
1 answer

This code can be used in scripts:

 <textarea name='test' id='test'><%=uabout %> </textarea> 

OR using JSTL

 <textarea name='test' id='test'><c:out value="${uabout}" /> </textarea> 

In addition, the value attribute is missing from the textarea tag.

+11
source

Source: https://habr.com/ru/post/1345397/


All Articles