• 大小: 18.57MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-06-19
  • 语言: Java
  • 标签: ssh  

资源简介

spring+struts2+hibernate+mysql实现的Java web论坛系统源码,本系统功能类似与csdn论坛,用户发帖时可以设置积分,当结帖时可以选择给评论的用户给与相应的分值,功能非常完善,已经接近可以直接上线使用的地步

资源截图

代码片段和文件信息

/**
 * 
 */
package com.chen.action;

import java.util.Date;
import java.util.List;

import com.chen.bean.Announces;
import com.chen.bean.Pages;
import com.chen.service.AnnounceService;

/**
 * @author chenguoji
 * @email chenguo_ji@163.com
 * 
 * 论坛公告
 * 
 */
public class AnnounceAction {

private Announces announce;
private AnnounceService announceService;
private List listAnno;
private Pages pageBean;
private int annoId = 1;
private int annoSize;
private int nowPage = 0;

public String getIndexAnno() throws Exception {
this.listAnno = this.announceService.getIndexAnno(6);
this.announce = this.announceService.find(annoId);
if(announce==null){
return “error“;
}
return “anno_getIndex_ok“;
}

public String getAll() throws Exception {
this.listAnno = this.announceService.getAll();
this.announce = this.announceService.find(annoId);
if(announce==null){
return “error“;
}
this.annoSize = this.listAnno.size();
return “anno_getAll_ok“;
}

public String ManageAll() throws Exception {
this.pageBean = this.announceService.ManageAllForPages(10 nowPage);
this.listAnno = pageBean.getListAnno();
return “anno_mangeAll_ok“;
}

public String ManageGoUpdate() throws Exception {
this.announce = this.announceService.find(this.announce.getId());
if(announce==null){
return “error“;
}
return “anno_manageGoUpdate_ok“;
}

public String ManageAdd() throws Exception{
Date ttime = new Date();
this.announce.setThetime(ttime);
this.announceService.ManageAdd(announce);
return “anno_ManageAdd_ok“;
}

public String ManageUpdate() throws Exception {
Date ttime = new Date();
announce.setThetime(ttime);
this.announceService.ManageUpdate(announce);
return “anno_manageUpdate_ok“;
}

public AnnounceService getAnnounceService() {
return announceService;
}

public void setAnnounceService(AnnounceService announceService) {
this.announceService = announceService;
}

public List getListAnno() {
return listAnno;
}

public void setListAnno(List listAnno) {
this.listAnno = listAnno;
}

public int getAnnoId() {
return annoId;
}

public void setAnnoId(int annoId) {
this.annoId = annoId;
}

public int getAnnoSize() {
return annoSize;
}

public void setAnnoSize(int annoSize) {
this.annoSize = annoSize;
}

public Pages getPageBean() {
return pageBean;
}

public void setPageBean(Pages pageBean) {
this.pageBean = pageBean;
}

public int getNowPage() {
return nowPage;
}

public void setNowPage(int nowPage) {
this.nowPage = nowPage;
}

public Announces getAnnounce() {
return announce;
}

public void setAnnounce(Announces announce) {
this.announce = announce;
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-01-04 22:16  项目源码\
     目录           0  2018-12-09 11:27  项目源码\forum\
     文件        4054  2018-12-09 12:41  项目源码\forum\.classpath
     文件        1254  2018-12-09 15:21  项目源码\forum\.project
     目录           0  2018-12-09 11:27  项目源码\forum\.settings\
     文件         503  2017-10-09 14:39  项目源码\forum\.settings\.jsdtscope
     文件         108  2018-12-09 12:42  项目源码\forum\.settings\org.eclipse.core.resources.prefs
     文件         701  2018-12-09 12:44  项目源码\forum\.settings\org.eclipse.jdt.core.prefs
     文件         467  2017-10-09 14:39  项目源码\forum\.settings\org.eclipse.wst.common.component
     文件         345  2018-05-14 13:11  项目源码\forum\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2017-10-09 14:39  项目源码\forum\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2017-10-09 14:39  项目源码\forum\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2018-12-09 11:27  项目源码\forum\WebContent\
     目录           0  2018-12-09 11:27  项目源码\forum\WebContent\CSS\
     文件        2244  2017-10-09 14:41  项目源码\forum\WebContent\CSS\index.css
     文件         556  2017-10-09 14:41  项目源码\forum\WebContent\CSS\login.css
     文件         671  2017-10-09 14:41  项目源码\forum\WebContent\CSS\manage.css
     文件         467  2017-10-09 14:41  项目源码\forum\WebContent\CSS\manager_left.css
     文件         580  2017-10-09 14:41  项目源码\forum\WebContent\CSS\register.css
     目录           0  2018-12-09 11:27  项目源码\forum\WebContent\JS\
     文件      364378  2017-10-09 14:41  项目源码\forum\WebContent\JS\jquery-1.11.0.js
     文件       83095  2017-10-09 14:41  项目源码\forum\WebContent\JS\jquery.min.js
     文件        1772  2017-10-09 14:41  项目源码\forum\WebContent\JS\login.js
     文件      120633  2017-10-09 14:41  项目源码\forum\WebContent\JS\mootools-1.4.5.js
     文件        2795  2017-10-09 14:41  项目源码\forum\WebContent\JS\popMsg.js
     文件        6042  2017-10-09 14:41  项目源码\forum\WebContent\JS\register.js
     文件         414  2017-10-09 14:41  项目源码\forum\WebContent\JS\top.js
     文件         440  2017-10-09 14:41  项目源码\forum\WebContent\JS\uploadPic.js
     目录           0  2018-12-09 11:27  项目源码\forum\WebContent\meta-INF\
     文件          36  2017-10-09 14:41  项目源码\forum\WebContent\meta-INF\MANIFEST.MF
     目录           0  2018-12-09 11:27  项目源码\forum\WebContent\WEB-INF\
............此处省略661个文件信息

评论

共有 条评论