开发者

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.


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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜