我是个java初学者突然需要看懂下面的程序我实在是看不懂请会的人帮忙一句句讲解一下看看我能不能懂一点拜托了谢谢protectedvoiddoGet(HttpServletRequestrequest,HttpServletResponse...
我是个java初学者 突然需要看懂下面的程序 我实在是看不懂 请会的人帮忙 一句句讲解一下 看看我能不能懂一点 拜托了 谢谢
protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
System.out.println("===doGet==");
try {
byte[] contentByte = null;
String respond_str = "";
ChgDateType chgDateType = new ChgDateType();
respond_str = chgDateType.responseAllWebInf("01"," 1=1");
contentByte = respond_str.getBytes();
response.setContentType("application/vnd.wap.mms-message");
ServletOutputStream outStream = response.getOutputStream();
outStream.write(contentByte);
outStream.flush();
outStream.close();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
processRequest(request, response);
}
大概解释一下每句话的意思就可以,尽量解释的清楚一些,谢谢。
展开