Description: 分页显示一直是web开发中一大烦琐的难题,传统的网页设计只在一个JSP或者ASP页面中书写所有关于数据库操作的代码,那样做分页可能简单一点,但当把网站分层开发后,分页就比较困难了,下面是我做Spring+Hibernate+Struts2项目时设计的分页代码,与大家分享交流。-Pagination has been a major web development cumbersome problem, the traditional web design all database operations code written in a JSP or ASP page, so do the paging may be simpler, but when layered development of the site, paging is more difficult, here is my Spring+ Hibernate+ the Struts2 project designed paging code sharing with everyone. Platform: |
Size: 24576 |
Author:王永 |
Hits:
Description: 项目名称:网络报销管理系统
开发语言: Java
开发环境:Windows XP sp2
IDE: MyEclipse 8.5
设计模式: MVC
WEB服务器:TomCat 6.0
数据库: MySQL 5.1
开发技术:Struts2 + JDBC + JSP
访问登陆地址:localhost:8080/voucher/login
主要实现功能:一、用户的登陆功能 ,根据用户的用户名和密码登陆到系统主页面,登陆过程中会验证用户的用户名和密码是否正确,如果不正确就会提示用户且停留在登陆页面等待用户继续输入。并设置有登陆拦截器所以不能跳过登陆而直接访问系统主页面。
二、主页面功能主要有:报销单查询、报销单申请、报销单审核、报销单审批、退出系统等功能。因为每个登陆用户都有一个权限状态码,其中报销单查询、报销单申请、退出系统功能所有用户都能使用,而报销单审批只有权限状态为1的用户才能使用,报销单审核只有权限状态为2的用户才能使用。-Project Name : Network Management System reimbursement
Development languages : Java
Development environment : Windows XP sp2
IDE: MyEclipse 8.5
Design Patterns : MVC
WEB server : TomCat 6.0
Database : MySQL 5.1
Development of technology : Struts2+ JDBC+ JSP
Visit landing Address : localhost: 8080/voucher/login
The main functions: a user s login functionality log the user s user name and password to the system home page , landing process will validate the user s username and password are correct , if not correct it will prompt the user and stay in the landing page waiting for the user continue typing. And is provided so you can not skip the login interceptor and direct access to the system login page.
Second, the main page features are: single query reimbursement , reimbursement single application , a single audit reimbursement , reimbursement single approval, exit the system functions. Because each user has a landing permission status code , whic Platform: |
Size: 12510208 |
Author:徐纲 |
Hits: