?? updatestudentownaction.java
字號:
//Created by MyEclipse Struts// XSL source (default): platform:/plugin/com.genuitec.eclipse.cross.easystruts.eclipse_4.0.1/xslt/JavaClass.xslpackage com.huang.student.actions;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.student.forms.UpdateStudentOwnForm;public class UpdateStudentOwnAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { UpdateStudentOwnForm updateStudentOwnForm = (UpdateStudentOwnForm) form; // TODO Auto-generated method stub String student_id = request.getSession().getAttribute("student").toString(); String student_password = updateStudentOwnForm.getNewpassword(); String sql = "update tb_student set student_password='"+student_password+"' where student_id='"+student_id+"'"; DBtool.updateData(sql); return mapping.findForward("success"); }}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -