I am writing code to display a string which comes from a session on a jsp page..this string is 15 chars long and can have empty spaces in the beginning or the middle of the string..when i display the string..it omits the empty spaces from the beginning and the end...how can i preserve these empty places in the string when I display it on the JSP.
The string is coming in the correct format to jsp..when i print it up in the console...
<TD align = left>ID: <%= idString %><FONT color = "red">(<%= numd %>)</FONT>
The string can be "01234ABCDEFGHIJ" or " CDEF HIJ"
If the first string is given it is displayed as expected..problem is with the second string..please help me.