91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 2.14MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-08-11
  • 語言: Java
  • 標(biāo)簽: JSP??MySQL??

資源簡介

剛完成的項(xiàng)目,內(nèi)附有現(xiàn)成的代碼和數(shù)據(jù)庫,下載即可用。

資源截圖

代碼片段和文件信息

package?c;

import?c.DBConn;
import?c.UserDao;

import?java.io.IOException;
import?java.io.PrintWriter;
import?java.sql.Connection;
import?java.sql.SQLException;

import?javax.servlet.ServletException;
import?javax.servlet.http.HttpServlet;
import?javax.servlet.http.HttpServletRequest;
import?javax.servlet.http.HttpServletResponse;

public?class?chart?extends?HttpServlet?{

/**
?*?Constructor?of?the?object.
?*/
public?chart()?{
super();
}

/**
?*?The?doGet?method?of?the?servlet.?

?*
?*?This?method?is?called?when?a?form?has?its?tag?value?method?equals?to?get.
?*?
?*?@param?request?the?request?send?by?the?client?to?the?server
?*?@param?response?the?response?send?by?the?server?to?the?client
?*?@throws?ServletException?if?an?error?occurred
?*?@throws?IOException?if?an?error?occurred
?*/
public?void?doGet(HttpServletRequest?request?HttpServletResponse?response)
throws?ServletException?IOException?{

doPost(requestresponse);
}

/**
?*?The?doPost?method?of?the?servlet.?

?*
?*?This?method?is?called?when?a?form?has?its?tag?value?method?equals?to?post.
?*?
?*?@param?request?the?request?send?by?the?client?to?the?server
?*?@param?response?the?response?send?by?the?server?to?the?client
?*?@throws?ServletException?if?an?error?occurred
?*?@throws?IOException?if?an?error?occurred
?*/
public?void?doPost(HttpServletRequest?request?HttpServletResponse?response)
throws?ServletException?IOException?{

String?basePath?=?this.getServletContext().getRealPath(“/“);

UserDao?userDao?=?new?UserDao();

Connection?conn?=?null;

conn?=?DBConn.getConn();

String?strFlag?=?request.getParameter(“flag“);

try{

if(“bar“.equals(strFlag)){

userDao.createBar(request?response?basePath+“chart\\chartBar.jpg“);

}else?if(“pie“.equals(strFlag)){

userDao.createPie(request?response?basePath+“chart\\chartPie.jpg“);

}

}catch(Exception?e){
e.printStackTrace();
}finally{
if(conn?!=?null){
try?{
conn.close();
}?catch?(SQLException?e)?{
e.printStackTrace();
}
}
}
}

}

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-01-12?11:10??s2\
?????文件????????6148??2019-01-12?11:10??s2\.DS_Store
?????目錄???????????0??2019-01-12?11:11??__MACOSX\
?????目錄???????????0??2019-01-12?11:11??__MACOSX\s2\
?????文件?????????120??2019-01-12?11:10??__MACOSX\s2\._.DS_Store
?????目錄???????????0??2012-11-19?20:42??s2\WebRoot\
?????文件?????????712??2012-11-19?08:27??s2\WebRoot\left.jsp
?????目錄???????????0??2019-01-12?11:11??__MACOSX\s2\WebRoot\
?????文件?????????172??2012-11-19?08:27??__MACOSX\s2\WebRoot\._left.jsp
?????文件?????????807??2012-11-19?08:27??s2\WebRoot\mainframe.jsp
?????文件?????????172??2012-11-19?08:27??__MACOSX\s2\WebRoot\._mainframe.jsp
?????文件????????1467??2012-11-19?08:27??s2\WebRoot\request.jsp
?????文件?????????172??2012-11-19?08:27??__MACOSX\s2\WebRoot\._request.jsp
?????文件????????1130??2012-11-19?08:27??s2\WebRoot\top.jsp
?????文件?????????172??2012-11-19?08:27??__MACOSX\s2\WebRoot\._top.jsp
?????文件?????????575??2012-11-19?08:27??s2\WebRoot\error.jsp
?????文件?????????172??2012-11-19?08:27??__MACOSX\s2\WebRoot\._error.jsp
?????文件????????1401??2012-11-19?08:27??s2\WebRoot\liu.jsp
?????文件?????????172??2012-11-19?08:27??__MACOSX\s2\WebRoot\._liu.jsp
?????目錄???????????0??2012-11-19?20:14??s2\WebRoot\file\
?????文件?????????285??2012-11-19?08:27??s2\WebRoot\file\agreement.txt
?????目錄???????????0??2019-01-12?11:11??__MACOSX\s2\WebRoot\file\
?????文件?????????172??2012-11-19?08:27??__MACOSX\s2\WebRoot\file\._agreement.txt
?????文件?????????172??2012-11-19?20:14??__MACOSX\s2\WebRoot\._file
?????文件????????3487??2012-11-19?08:27??s2\WebRoot\yonghu.jsp
?????文件?????????172??2012-11-19?08:27??__MACOSX\s2\WebRoot\._yonghu.jsp
?????文件????????1135??2012-11-19?08:27??s2\WebRoot\response1.jsp
?????文件?????????172??2012-11-19?08:27??__MACOSX\s2\WebRoot\._response1.jsp
?????目錄???????????0??2013-01-11?21:29??s2\WebRoot\chart\
?????文件?????????172??2013-01-11?21:29??__MACOSX\s2\WebRoot\._chart
?????文件????????2972??2012-11-19?08:27??s2\WebRoot\userupd.jsp
............此處省略150個(gè)文件信息

評論

共有 條評論

相關(guān)資源