Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
How are you pulling the string from the database? If you use a ResultSet populated from a Statement object with some SQL.. you can retrieve any field type from the database by using the ResultSet.getString("fieldName")... this will return a string object from the fieldName no matter its type in the database... > Hi, > I am currently trying to display a text string I have placed in a MYSQL table using JSP and Tomcat. I am having a few problems though. The connection is fine and when it is displayed the string is displaying goobldy gook like this - [B@80dd124 > Yet when I change the database from a text string to a varchar or char string it displays fine. I want to use the text string as others will be inputing data in. Any ideas as to why this might be happening? Can someone please help me? > Thanks
Replies: |
Sponsored Links
|