wood burning stoves 2.0*
The moose likes JSP and the fly likes input field in JSP not displaying entire text. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "input field in JSP not displaying entire text." Watch "input field in JSP not displaying entire text." New topic
Author

input field in JSP not displaying entire text.

Lon Allen
Ranch Hand

Joined: May 24, 2001
Posts: 67
I have an text input field in a JSP that gets a
string from a JavaBean. When the code is ran in the debugger the value that is being returned is not what is being displayed in the text field. My string is "My Unit ID" and the input field only shows "My". It seems that it is stopping on the first space in the string.
I have tried several methods to get the value from the bean with the same results:

and


Any clues as to what I am doing wrong?

Lon
Lon Allen
Ranch Hand

Joined: May 24, 2001
Posts: 67
I should note that if the text being displayed is just regular text on the JSP the entire string is displayed. It is only failing when trying to put the text into an input field.

Lon
Lon Allen
Ranch Hand

Joined: May 24, 2001
Posts: 67
My bad!
After taking the time to search a little more extensively I found the answer.
The fix was to add single quotes on the VALUE= attribute.

Thanks anyway...

Lon
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: input field in JSP not displaying entire text.
 
Similar Threads
Dynamic XML and JSP
problem in retrieving data from a DB to HTML through JSP
text field validation
is there an isDigit( ) method ?
INPUT field truncating text after a space char.....