📄 updatepaymentcardactions.java
字号:
package org.bestteam.web.struts.action;
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 org.bestteam.domain.PaymentCard;
import org.bestteam.service.PaymentCardService;
import org.bestteam.web.struts.form.UpdatePaymentCardForm;
public class UpdatePaymentCardActions extends Action {
// private PaymentCardService paymentCardService;
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
// UpdatePaymentCardForm updatePaymentCardForm = (UpdatePaymentCardForm) form;// TODO Auto-generated method stub
// PaymentCard paymentCard = updatePaymentCardForm.getPaymentCard();
System.out.println("hello");
// System.out.println(paymentCard.getCreditCard());
// if (paymentCardService.updatePaymentCard(paymentCard)) {
// request.setAttribute("Message", "更新支付宝信息成功");
// return mapping.findForward("success");
// }
// request.setAttribute("errorMessage", "更新支付宝信息失败");
return null;//mapping.findForward("fail");
}
// public void setPaymentCardService(PaymentCardService paymentCardService) {
// this.paymentCardService = paymentCardService;
// }
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -