⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 studentaction.java

📁 网上选课系统 供学习用 初学者可以看看 各种功能还算完善吧
💻 JAVA
字号:
package com.student.action;import org.apache.struts.action.*;import javax.servlet.http.*;import com.student.actionform.StudentActionForm;import com.student.logic.StudentLogic;import com.student.vo.BaseInfo;public class StudentAction extends Action {  public ActionForward perform(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) {    /**@todo: complete the business logic here, this is just a skeleton.*/        StudentActionForm form = (StudentActionForm) actionForm;        StudentLogic logic = new StudentLogic(form);        if(form.getOperation().equals("delete"))        {          logic.deleteStudent();          form.setOperation("display");        }        if(form.getOperation().equals("save"))        {          logic.saveStudent();          form.setOperation("display");        }        if(form.getOperation().equals("add"))        {           logic.addStudent();           form.setOperation("display");           logic.closeDAO();           return actionMapping.findForward("student");        }        logic.getStudents();        logic.closeDAO();        return actionMapping.findForward("student");  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -