当前位置: 移动技术网 > IT编程>开发语言>Jsp > jsp生成html--replace

jsp生成html--replace

2019年04月19日  | 移动技术网IT编程  | 我要评论

package ball.news;
import java.io.*;
import news.readtemplates;
public class  replaceall
{
 private static object a = new object();
 public replaceall()
 { 
 }

 public string replace(string content,string flag,string temp)
 {
  string str = null;
  
        try
        {
         //system.out.println("before-----"+content);
         string s1 = content;
            str = s1.replaceall(flag,temp); 
           // system.out.println("replace after-----"+str);
        }
        catch(exception e)
        {
         system.out.println("replace all error:"+e.getmessage());
        }
        return str;
       
    }
    private static void a(string s)
    {
        file file = new file(s);
        if(!file.exists())
            file.mkdirs();
    }
}

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网