?? changepwaction.java
字號:
package product.action;
import product.db.AccountDAO;
import javax.servlet.http.*;
import org.apache.struts.action.*;
import org.apache.struts.actions.DispatchAction;
public class ChangePWAction extends Action{
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception
{
String id =(String)request.getSession().getAttribute("uid");
String newpw = request.getParameter("newpw");
String oldpw=request.getParameter("oldpw");
AccountDAO accountDAO = new AccountDAO();
accountDAO.updatePw(id,oldpw,newpw);
return mapping.findForward("success");
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -