package net.lisoft.service.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class CBasicService {
public static void LcMessage(HttpServletResponse response, String Message)
throws ServletException, IOException {
LcMessage(response, Message, "");
}
public static void LcMessage(HttpServletResponse response, String Message,
String URL) throws ServletException, IOException {
String sReturn = "";
sReturn = "<script language='javascript'>alert('" + Message
+ "');history.go(-1);</script>";
PrintWriter out = response.getWriter();
out.println(sReturn);
out.flush();
out.close();
}
}
标签: