try{
System.in.read()
}
carth{}

解决方案 »

  1.   

    写入数据库的时候把 /n 换成<br>就行了
      

  2.   

    http://www.csdn.net/expert/topic/94/94417.shtm
      

  3.   

    jsp将return 转为<br>函数
    public static String returnToBr(String sStr)
    {
    if (sStr == null // sStr.equals("")) 
    {
    return sStr;
    } String sTmp = new String();
    int i = 0;while (i <= sStr.length()-1)
    {
    if (sStr.charAt(i) == ' ')
    {
    sTmp = sTmp.concat("
    ");
    }
    else

    sTmp = sTmp.concat(sStr.substring(i,i+1));
    }
    i++;
    }
    return sTmp;