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

  • 大小: 14.64MB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發布日期: 2023-08-05
  • 語言: Java
  • 標簽: web開發??JSP??mvc??mysql??

資源簡介

基于jsp+mvc+mysql的個人博客網站,包括前段頁面,后臺Java代碼,界面友好,可以實現登錄注冊功能,瀏覽博客,發表博客,個人信息主頁等功能。

資源截圖

代碼片段和文件信息

package?com.action;

import?java.io.IOException;
import?javax.servlet.ServletException;
import?javax.servlet.annotation.WebServlet;
import?javax.servlet.http.HttpServlet;
import?javax.servlet.http.HttpServletRequest;
import?javax.servlet.http.HttpServletResponse;

import?com.entries.Approve;
import?com.service.IApproveService;

/**
?*?Servlet?implementation?class?ApproveAction
?*/
@WebServlet(“/ApproveAction“)
public?class?ApproveAction?extends?HttpServlet?{
private?static?final?long?serialVersionUID?=?1L;
????IApproveService?approveservice;
????/**
?????*?@see?HttpServlet#HttpServlet()
?????*/
????public?ApproveAction()?{
????????super();
????????//?TODO?Auto-generated?constructor?stub
????}

/**
?*?@see?HttpServlet#doGet(HttpServletRequest?request?HttpServletResponse?response)
?*/
protected?void?doGet(HttpServletRequest?request?HttpServletResponse?response)?throws?ServletException?IOException?{
//?TODO?Auto-generated?method?stub
String?method?=?request.getParameter(“method“);

System.out.println(method);

if(“approve“.equals(method))
//點贊
this.approve(request?response);
else?if(“getapprove“.equals(method))
//取消贊
this.disapprove(request?response);

}
protected?void?approve(HttpServletRequest?request?HttpServletResponse?response)?throws?ServletException?IOException?{

int?text_id?=?Integer.parseInt(request.getParameter(“approve_text_id“));
int?user_id?=?Integer.parseInt(request.getParameter(“approve_user_id“));
Approve?approve?=?new?Approve(user_idtext_id);

int?flag1?=?approveservice.addApprove(approve);

if(flag1==0){
System.out.println(“添加點贊信息失敗“);
}else{
System.out.println(“添加點贊信息成功“);
}


int?flag2?=?approveservice.approveText(approve);

if(flag2==0){
System.out.println(“點贊文章失敗“);
}else{
System.out.println(“點贊文章成功“);
}
}

protected?void?disapprove(HttpServletRequest?request?HttpServletResponse?response)?throws?ServletException?IOException?{
int?text_id?=?Integer.parseInt(request.getParameter(“approve_text_id“));
int?user_id?=?Integer.parseInt(request.getParameter(“approve_user_id“));
Approve?approve?=?new?Approve(user_idtext_id);
int?flag?=?approveservice.disApprove(approve);

}


/**
?*?@see?HttpServlet#doPost(HttpServletRequest?request?HttpServletResponse?response)
?*/
protected?void?doPost(HttpServletRequest?request?HttpServletResponse?response)?throws?ServletException?IOException?{
//?TODO?Auto-generated?method?stub
doGet(request?response);
}

}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-01-04?19:46??MyBlog\
?????文件????????1085??2019-01-04?12:10??MyBlog\.classpath
?????文件?????????906??2019-01-04?10:35??MyBlog\.project
?????目錄???????????0??2019-01-05?11:16??MyBlog\.settings\
?????文件?????????567??2019-01-04?10:35??MyBlog\.settings\.jsdtscope
?????文件??????????69??2019-01-09?15:44??MyBlog\.settings\org.eclipse.core.resources.prefs
?????文件?????????364??2019-01-04?10:35??MyBlog\.settings\org.eclipse.jdt.core.prefs
?????文件?????????470??2019-01-04?10:35??MyBlog\.settings\org.eclipse.wst.common.component
?????文件?????????345??2019-01-04?10:35??MyBlog\.settings\org.eclipse.wst.common.project.facet.core.xml
?????文件??????????49??2019-01-04?10:35??MyBlog\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件???????????6??2019-01-04?10:35??MyBlog\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????文件???????70768??2018-06-30?19:14??MyBlog\Rock持久層超輕量級框架.CHM
?????目錄???????????0??2019-01-08?12:12??MyBlog\WebContent\
?????目錄???????????0??2019-01-04?10:35??MyBlog\WebContent\meta-INF\
?????文件??????????39??2019-01-04?10:35??MyBlog\WebContent\meta-INF\MANIFEST.MF
?????目錄???????????0??2019-01-08?12:12??MyBlog\WebContent\WEB-INF\
?????目錄???????????0??2019-01-07?12:45??MyBlog\WebContent\WEB-INF\lib\
?????文件???????56290??2019-01-07?12:45??MyBlog\WebContent\WEB-INF\lib\activation.jar
?????文件??????608376??2019-01-04?15:31??MyBlog\WebContent\WEB-INF\lib\c3p0-0.9.1.jar
?????文件??????231320??2019-01-04?15:31??MyBlog\WebContent\WEB-INF\lib\commons-beanutils-1.8.0.jar
?????文件??????232019??2019-01-04?15:31??MyBlog\WebContent\WEB-INF\lib\commons-beanutils-1.8.3.jar
?????文件??????559366??2019-01-04?15:31??MyBlog\WebContent\WEB-INF\lib\commons-collections-3.1.jar
?????文件???????57779??2019-01-04?15:31??MyBlog\WebContent\WEB-INF\lib\commons-fileupload-1.2.1.jar
?????文件???????68622??2019-01-04?15:31??MyBlog\WebContent\WEB-INF\lib\commons-fileupload-1.3.jar
?????文件??????109043??2019-01-04?15:31??MyBlog\WebContent\WEB-INF\lib\commons-io-1.4.jar
?????文件??????185140??2019-01-04?15:31??MyBlog\WebContent\WEB-INF\lib\commons-io-2.4.jar
?????文件??????261809??2019-01-04?15:31??MyBlog\WebContent\WEB-INF\lib\commons-lang-2.4.jar
?????文件???????60686??2019-01-04?15:31??MyBlog\WebContent\WEB-INF\lib\commons-logging-1.1.1.jar
?????文件???????86487??2019-01-04?15:31??MyBlog\WebContent\WEB-INF\lib\ezmorph-1.0.6.jar
?????文件???????61243??2019-01-04?15:31??MyBlog\WebContent\WEB-INF\lib\fckeditor-java-2.5.jar
?????文件???????10862??2019-01-04?15:31??MyBlog\WebContent\WEB-INF\lib\imageinfo-1.9.jar
............此處省略188個文件信息

評論

共有 條評論