I have a servlet that queries a mysql db and then displays the data in a table. I have a column that is called type and it is a string. When I do
rs.getString("type")
without using a input item I get the full string (rs is the resultSet). But when I do this:
<input name="class" type="text" value=<%=rs.getString("type")%>>
If the string has a space i.e. 'ABC DEF' then it will only have a value of 'ABC'. Or if the string is ''1' ABC' then the value is only '1'.
How can I get the full value to be in the value?