How to showing text box value with space?

Hi All,

We have a database field type character which contains texts with space between them.

When we bring a html form on the screen (using a text box) to show the value (which is passed as a request attribute), only the first word appears, with the rest after the space missing.

eg.

DB->Table->MyField = "FIRST SECOND"

appears as FIRST

code follows:

<td><input type = "text" name = "parameter6" size = "40" maxlength = "40" value = <%= request.getAttribute( "asUSERTITLE" ) %> /></td>

Question: How to show all the characters including space using text box.

Thanks in advance for any assistance.

Regards,

Trajano Roberto

[732 byte] By [traja47] at [2007-9-19]
# 1
It's quite simple :-) you simply forgot to put the string in to " ".<td><input type = "text" name = "parameter6" size = "40" maxlength = "40" value = "<%= request.getAttribute( "asUSERTITLE" ) %>" /></td> Bye.
fvalder at 2007-7-5 > top of java,Enterprise & Remote Computing,Web Tier APIs...