ITeye博客

SSH

共 6 篇文章

SSH2整合+分页+ajax+js校验用户名

1 action: FriendAction package com.ipanel.action; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.http.HttpServletResponse; import org.apache.struts2.ServletActionContext; import com.ipanel.entity.Friend; import com.ipanel.service.FriendService; import com.opensymphony.…

2011-04-18 18:31 · SSH · DAO · Ajax · SQL · Hibernate · JSP

shh的例子

action: EmployeeAction.java @Controller // employeeAction public class EmployeeAction { @Resource EmployeeService employeeService; public String execute(){ ActionContext.getContext().put("employees", employeeService.list()); return "list"; } } EmployeeManageAction public class EmployeeManageAction …

2011-03-24 01:21 · SSH · SQL · .net · XML · Hibernate · Bean

分页例子

分页每个项目里面差不多都会用到 我以前耶找了很多个 但最近掌握了一个很好用的分页 先是一个page的bean: Java代码 1.package com.leatherstore.other; 2. 3.public class Page { 4. 5./** 是否有上一页 */ 6.private boolean hasPrePage; 7. 8./** 是否有下一页 */ 9.private boolean hasNextPage; 10. 11./** 每页的数量 */ 12.private int everyPage; 13. 14./** 总页数 */ 15.private int…

2011-02-18 01:06 · SSH · Spring · Hibernate · JSP · 编程 · Bean

struts+hibernate+spring标准配置文件

[color=red]web.xml: [/color] contextConfigLocation classpath*:applicationContext-*.xml encodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding utf-8 encodingFilter /* hibernateFilter org.springframework.orm.hibernate3.support.OpenSessionInViewFilter hibernateFilter /* org.spr…

2010-10-25 11:01 · SSH · Spring · Struts · Hibernate · 配置管理 · Oracle

struts-config.xml文件的配置

2010-10-14 08:37 · SSH · Apache · Struts · XML

ssh整合中web教你怎么去写配置文件

web.xml配置 action org.apache.struts.action.ActionServlet config /WEB-INF/struts-config.xml debug 3 detail 3 0 action *.do myFilter pack.java.ssh.filter.myFilter myFilter /* contextConfigLocation /WEB-INF/classes/applicationContext.xml openSessionInView org.springframework.orm.hibernate3.support.Open…

2010-10-13 17:21 · SSH · Struts · XML · JSP · SSH · Web