• 大小: 14.85MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-31
  • 语言: 数据库
  • 标签: ssh  

资源简介

基于ssh架构的论坛,下载下来导入mysql即可运行

资源截图

代码片段和文件信息

package action;

import java.util.List;
import com.opensymphony.xwork2.ActionSupport;
import dao.BoardDAO;
import entity.Board;

public class BoardAction extends ActionSupport {
private static final long serialVersionUID = 1L;
private String boardname;
private int parentId;
private int boardId;
private List parentboard;

public List getParentboard() {
return parentboard;
}

public void setParentboard(List parentboard) {
this.parentboard = parentboard;
}

public int getBoardId() {
return boardId;
}

public void setBoardId(int boardId) {
this.boardId = boardId;
}

public String getBoardname() {
return boardname;
}

public void setBoardname(String boardname) {
this.boardname = boardname;
}

public int getParentId() {
return parentId;
}

public void setParentId(int parentId) {
this.parentId = parentId;
}

/**
 * 获得父版块列表
 * 
 * @return
 */
public String findParentBoard() {
BoardDAO boardDao = new BoardDAO();
parentboard = boardDao.findparentboard();
return SUCCESS;
}

/**
 * 添加版块
 * 
 * @return
 * @throws Exception
 */
public String addBoard() throws Exception {
BoardDAO boardDao = new BoardDAO();
Board board = new Board();
board.setBoardname(boardname);
board.setParentid(parentId);
boardDao.BoardSave(board);
return SUCCESS;
}

/**
 * 更新版块
 * 
 * @return
 * @throws Exception
 */
public String updateBoard() throws Exception {
BoardDAO boardDao = new BoardDAO();
Board board = boardDao.findBoardByid(boardId);
board.setBoardname(boardname);
board.setParentid(parentId);
boardDao.BoardUpdate(board);
return SUCCESS;
}


}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-11-12 18:56  luntan\
     目录           0  2012-11-12 18:56  luntan\bbs\
     文件        2911  2012-11-12 18:55  luntan\bbsmanager.sql
     文件        3388  2012-06-11 19:47  luntan\bbs\.classpath
     目录           0  2012-06-04 20:44  luntan\bbs\.myeclipse\
     文件         570  2009-05-08 12:05  luntan\bbs\.myhibernatedata
     文件         282  2012-06-04 20:44  luntan\bbs\.mymetadata
     文件          66  2009-05-12 18:12  luntan\bbs\.myumldata
     文件        1611  2009-05-08 12:48  luntan\bbs\.project
     目录           0  2012-11-12 18:56  luntan\bbs\.settings\
     文件         500  2009-05-08 11:59  luntan\bbs\.settings\.jsdtscope
     文件          88  2009-05-13 09:57  luntan\bbs\.settings\org.eclipse.core.resources.prefs
     文件         629  2009-05-08 17:01  luntan\bbs\.settings\org.eclipse.jdt.core.prefs
     文件          49  2009-05-08 11:59  luntan\bbs\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2009-05-08 11:59  luntan\bbs\.settings\org.eclipse.wst.jsdt.ui.superType.name
     文件       57779  2009-05-13 21:18  luntan\bbs\commons-fileupload-1.2.1.jar
     文件       87776  2009-05-13 21:18  luntan\bbs\commons-io-1.3.2.jar
     文件      109043  2009-05-12 15:54  luntan\bbs\commons-io-1.4.jar
     文件       38015  2009-05-11 17:10  luntan\bbs\commons-logging-1.0.4.jar
     文件       49990  2009-05-13 21:18  luntan\bbs\fckeditor-java-core-2.4.1.jar
     文件      802494  2009-05-11 17:10  luntan\bbs\freemarker-2.3.8.jar
     文件      703265  2009-05-08 11:59  luntan\bbs\mysql-connector-java-5.1.6-bin.jar
     文件      168081  2009-05-11 17:10  luntan\bbs\ognl-2.6.11.jar
     文件       22338  2009-05-13 21:18  luntan\bbs\slf4j-api-1.5.6.jar
     文件        8815  2009-05-13 21:18  luntan\bbs\slf4j-jdk14-1.5.6.jar
     文件        9678  2009-05-13 21:18  luntan\bbs\slf4j-log4j12-1.5.6.jar
     目录           0  2012-11-12 18:56  luntan\bbs\src\
     目录           0  2012-11-12 18:56  luntan\bbs\src\action\
     文件        1746  2012-06-05 20:44  luntan\bbs\src\action\BoardAction.java
     文件         807  2009-06-25 16:59  luntan\bbs\src\action\FileDownAction.java
     文件        4350  2012-06-12 18:04  luntan\bbs\src\action\ManagerUserAcion.java
............此处省略785个文件信息

评论

共有 条评论