文件名称:Liu_Yan_Ban
介绍说明--下载内容均来自于网络,请自行研究使用
JSP写的简单留言板小系统
所用到的类主要方法作用及属性有:
LoginAction.java:
属性:
User user=new User() // 用户
方法:
public String execute():判断用户是否存在
Page.java
属性:
private int lastpage, nowpage, prepage, nextpage
//main.jsp里实现显示留言的4个指标
方法:
对应的getXX(),setXX()方法
User.java
属性:
private String username //用户名
private String password //密码
方法:
对应的getXX(),setXX()方法
DBConn.java
属性:
Connection con=null //连接
PreparedStatement ps=null //命令对象
ResultSet rs=null //结果集
String sql //sql语句
方法:
public DBConn():连接数据库
public User checkUser(String username,String password):检查用户是否存在
public boolean register(String username,String password1):将注册信息写入数据库
public void savemsg(String name,String note):将留言信息写入数据库-JSP
message board
所用到的类主要方法作用及属性有:
LoginAction.java:
属性:
User user=new User() // 用户
方法:
public String execute():判断用户是否存在
Page.java
属性:
private int lastpage, nowpage, prepage, nextpage
//main.jsp里实现显示留言的4个指标
方法:
对应的getXX(),setXX()方法
User.java
属性:
private String username //用户名
private String password //密码
方法:
对应的getXX(),setXX()方法
DBConn.java
属性:
Connection con=null //连接
PreparedStatement ps=null //命令对象
ResultSet rs=null //结果集
String sql //sql语句
方法:
public DBConn():连接数据库
public User checkUser(String username,String password):检查用户是否存在
public boolean register(String username,String password1):将注册信息写入数据库
public void savemsg(String name,String note):将留言信息写入数据库-JSP
message board
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Liu_Yan_Ban
...........\.classpath
...........\.project
...........\.settings
...........\.........\.jsdtscope
...........\.........\org.eclipse.core.resources.prefs
...........\.........\org.eclipse.jdt.core.prefs
...........\.........\org.eclipse.wst.jsdt.ui.superType.container
...........\.........\org.eclipse.wst.jsdt.ui.superType.name
...........\100814405.mdb
...........\WebContent
...........\..........\META-INF
...........\..........\........\MANIFEST.MF
...........\..........\WEB-INF
...........\..........\.......\classes
...........\..........\.......\lib
...........\..........\.......\...\commons-fileupload-1.2.2.jar
...........\..........\.......\...\commons-io-2.0.1.jar
...........\..........\.......\...\commons-lang3-3.1.jar
...........\..........\.......\...\commons-logging-1.1.1.jar
...........\..........\.......\...\freemarker-2.3.19.jar
...........\..........\.......\...\javassist-3.11.0.GA.jar
...........\..........\.......\...\ognl-3.0.6.jar
...........\..........\.......\...\struts2-core-2.3.14.2.jar
...........\..........\.......\...\xwork-core-2.3.14.2.jar
...........\..........\.......\web.xml
...........\..........\login.jsp
...........\..........\login_failed.jsp
...........\..........\main.jsp
...........\..........\msg.html
...........\..........\picture
...........\..........\.......\1.jpg
...........\..........\.......\Thumbs.db
...........\..........\.......\first.jpg
...........\..........\.......\icon0.jpg
...........\..........\.......\icon1.jpg
...........\..........\.......\icon2.jpg
...........\..........\.......\icon3.jpg
...........\..........\.......\icon4.jpg
...........\..........\.......\last.jpg
...........\..........\.......\msg.jpg
...........\..........\.......\next.jpg
...........\..........\.......\previous.jpg
...........\..........\register.jsp
...........\..........\register_action.jsp
...........\..........\register_failed.jsp
...........\..........\register_success.jsp
...........\..........\save_msg.jsp
...........\build
...........\.....\classes
...........\.....\.......\PageEncodingFilter.class
...........\.....\.......\action
...........\.....\.......\......\LoginAction.class
...........\.....\.......\bean
...........\.....\.......\....\Page.class
...........\.....\.......\....\User.class
...........\.....\.......\db
...........\.....\.......\..\DBConn.class
...........\.....\.......\struts.xml
...........\src
...........\...\action
...........\...\......\LoginAction.java
...........\...\bean
...........\...\....\Page.java
...........\...\....\User.java
...........\...\db
...........\...\..\DBConn.java
...........\...\struts.xml