上一页 1 ··· 28 29 30 31 32
  2016年3月29日
摘要: 一、新建项目 struts 1.file——>new——>Web Project——>取名struts——>finsh——>将之前项目下的jar包copy到该项目下 2.新建packege action——>新建类class StudentAction——>继承至ActionSupport——>fi 阅读全文
posted @ 2016-03-29 16:35 小虾米吖~ 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 一、新建项目Struts 1.右键 new————Web Project 2.点击项目——右键——myeclipse——add Struts Capabilities.....——选择struts2.1 添加 jar 包 此时项目下就有struts的jar 包 二、开始写struts部分代码 1.首 阅读全文
posted @ 2016-03-29 15:46 小虾米吖~ 阅读(289) 评论(0) 推荐(0) 编辑
  2016年3月15日
摘要: 一.在UserDAO里面重写实体user要调用的方法; 1.查询所有user表中的记录。用getAllUser()方法得到List public class UserDAO { public List getAllUser() throws SQLException{ String sql="sel 阅读全文
posted @ 2016-03-15 22:53 小虾米吖~ 阅读(2234) 评论(0) 推荐(0) 编辑
  2016年3月10日
摘要: MVC (Model View Controller)设计模型: M:表示业务数据和业务规则。包括DAO(beans)、DBHelper(DBHelper),用于封装数据库连接,业务数据库处理。 V:是用户看到并与之交互的界面,比如 JSP 经常充当Web应用视图。 C:接收用户是输入并调用模型和视 阅读全文
posted @ 2016-03-10 20:31 小虾米吖~ 阅读(349) 评论(0) 推荐(0) 编辑
  2016年3月9日
摘要: 一. 用DBHelper 与mysql 连接 实现最简单的登录验证。 (1)新建 web project >选择src导入 DBHelper 工具包 >选择web root 下的 index.jsp 制作一个表单(用户名,密码连个提示框以及按钮) >用action将这个页面提交到login.jsp进 阅读全文
posted @ 2016-03-09 22:15 小虾米吖~ 阅读(881) 评论(0) 推荐(0) 编辑
上一页 1 ··· 28 29 30 31 32