这是个博客&论坛(学习版) 将文件夹拷贝到webapps目录下,并安装数据库, 即可运行。 偶学习期间编写的一个简易论坛,由最初的个人博客改过来的. 编译 jsp + javabea

源代码在线查看: boardbean.java

软件大小: 85 K
上传用户: fq335288450
关键词: webapps javabea jsp 博客
下载地址: 免注册下载 普通下载 VIP

相关代码

				package blog;
				
				
				public class BoardBean implements java.io.Serializable {
					private int 	boardID 	= 0;
					private String 	title		= "";
					private String 	content		= "";
					private String 	author		= "";
					private int 	authorID	= 0;
				
					//boardID
					public void setboardID(int boardID){
						this.boardID = boardID;
					}
					public int getboardID(){
						return boardID;
					}
						
					//title
					public void settitle(String title){
						this.title = title;
					}
					public String gettitle(){
						return title;
					}
						
					//content
					public void setcontent(String content){
						this.content = content;
					}
					public String getcontent(){
						return content;
					}
					
					//author
					public void setauthor(String author){
						this.author = author;
					}
					public String getauthor(){
						return author;
					}
					//authorID
					public void setauthorID(int authorID){
						this.authorID = authorID;
					}
					public int getauthorID(){
						return authorID;
					}
					//all
					public void fillAll(java.sql.ResultSet rs) throws java.sql.SQLException{
						
						boardID	= 	rs.getInt("boardID");
						title 	= 	rs.getString("title");
						content	=	rs.getString("content");
						author	=	rs.getString("author");
						boardID	=	rs.getInt("boardID");
					}
				
				}
							

相关资源