javascript - default value f:textarea -



javascript - default value f:textarea -

i've probelm jsp. need set default value f:textarea field so, that, on mvc controller extract info db , on jps print it:

<textarea id="description" name="description" rows="10" cols="74"> <c:out value="${fn:trim(f_default_text)}" /> </textarea>

it works fine , field filled but, there empty char @ origin of inserted text. take on db , value right , tried print value on mvc controller , it's without empty space.

what's happening?

many guys! andrea

i think <textarea> value picking indentation , line separator between tags.

try joining tags (><):

<textarea id="description" name="description" rows="10" cols="74"><c:out value="${fn:trim(f_default_text)}" /></textarea>

javascript spring jsp jstl

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -