📄 teacherteachinfoaction.java
字号:
//Created by MyEclipse Struts// XSL source (default): platform:/plugin/com.genuitec.eclipse.cross.easystruts.eclipse_4.0.1/xslt/JavaClass.xslpackage com.huang.teacher.actions;import java.util.ArrayList;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import org.apache.struts.action.Action;import org.apache.struts.action.ActionForm;import org.apache.struts.action.ActionForward;import org.apache.struts.action.ActionMapping;import com.huang.common.DB.DBtool;import com.huang.teacher.forms.TeacherTeachInfoForm;public class TeacherTeachInfoAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { TeacherTeachInfoForm teacherTeachInfoForm = (TeacherTeachInfoForm) form; // TODO Auto-generated method stub String index = (String)request.getParameter("index"); String teacher_id = request.getSession().getAttribute("teacher").toString(); ArrayList list = DBtool.getDataList("v_course",new String[]{"course_id","course_name","course_credit","teacher_name"},"teacher_id='"+teacher_id+"'"); request.setAttribute("course",list); return mapping.findForward("success"); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -