JSP generates HTML - Replace

xiaoxiao2021-03-06  66

Package ball.news; import java.io. *; import news.readTemplates; public class replaceall = new object (); public replaceall () {}

Public String Replace (String Content, String Flag, String Temp) {string str = null; try {//system.out.println ("bud "-----" 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 ();}}

转载请注明原文地址:https://www.9cbs.com/read-86623.html

New Post(0)