js| Solutions | questions | Chinese
The recent use of JSP to do news release found that the rs.getstring () obtained by the string inside the space and the line of change are not shown,
First analysis of the reasons, I used the MySQL database, the news content used is the text type, view the database uploaded news found inside the line and space can be displayed, this explains, affirmation is to use rs.getstring when the problem, first view the java.sql.* API wants to use a different get method, try a few results,
There are similar problems on the web, but most of them are done in a servlet or in a bean, and I think it's complicated.
Finally found the solution in the call Rs.getstring page inside the table to add style= "Word-break:break-all"
The <pre>rs.getstring () <> label is used to show the problem of line wrapping. of which the <pre></pre> must not be less
However, when one line of content is too long, the form will still be stretched, and needs to be modified in the form Hu style Property style= "table-layout:fixed Word-wrap:break-word" so as to really solve the problem of Chinese open form.