-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDisciplineAction.java
More file actions
53 lines (37 loc) · 880 Bytes
/
DisciplineAction.java
File metadata and controls
53 lines (37 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
package com.nxdcms.action;
import java.util.ArrayList;
import java.util.List;
import com.nxdcms.dao.impl.Discipline;
import com.nxdcms.entity.Student;
import com.opensymphony.xwork2.ActionSupport;
public class DisciplineAction extends ActionSupport {
Student student = new Student();
Discipline dis = new Discipline();
List<Student> list = new ArrayList<Student>();
public String execute() {
if(dis.Query()!=null){
this.setList(dis.Query());
return SUCCESS;
}else{
return ERROR;
}
}
public Student getStudent() {
return student;
}
public void setStudent(Student student) {
this.student = student;
}
public Discipline getDis() {
return dis;
}
public void setDis(Discipline dis) {
this.dis = dis;
}
public List<Student> getList() {
return list;
}
public void setList(List<Student> list) {
this.list = list;
}
}