开发者

how to print value in textarea in jsp

开发者 https://www.devze.com 2023-02-19 20:26 出处:网络
<% out.print(\"<textarea name=\'test\' id=\'开发者_高级运维test\'value=\'\"+uabout+\"\'></textarea>\");
         <% 
       out.print("<textarea name='test' id='开发者_高级运维test'value='"+uabout+"'></textarea>");

            %>

is not working.is there a syntax error.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消