ONLY14
2016-06-19 15:45
package com.zsq.action; import java.util.List; import org.hibernate.Session; import serviceImpl.StudentsDAOImpl; import com.opensymphony.xwork2.ActionSupport; import com.zsq.entity.Students; import com.zsq.service.StudentsDAO; public class StudentsAction extends ActionSupport { private static final long serialVersionUID = 1L; public String query() { StudentsDAO sdao = new StudentsDAOImpl(); List<Students> list = sdao.queryAllStudents(); if (list != null && list.size() > 0) { session.setAttribute("students_list", list); return "Students_query_success"; } } }
知道了,谢谢
使用Struts2+Hibernate开发学生信息管理功能
80701 学习 · 754 问题
相似问题