1.Jsp (preferred for SUN Enterprise applications)When the content entered on the page is displayedTagText and line feed processing
Enter two lines of text in the text input box on the input page:
<Br> huuhh <br>
<B> zookeeper </B> zookeeper <BR>♪
After confirmation, it is found that the line feed information has been removed automatically when it is transferred to the next confirmation page. In addition,TagText to be processedHtmlProcessing Method,
The input information is not displayed correctly.
Solution
On the confirmation page, you can solve the problem as follows:
Assume that the information to be displayed is saved in a string variable.CommentBefore the display, do the following:
<Td bgcolor = "# ffffff" valign = "top">
<% String comment = ifkbncomment. getValue ();
Comment = comment. replaceAll ("<", "& lt ");//Convert"<"Use"& Lt"Laidai
Comment = comment. replaceAll (">", "& gt ");//Convert