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";
}
}
}