updatepaymentcardactions.java
来自「Struts+Spring+Hibernate实现的在线拍卖系统,去掉了这些组件」· Java 代码 · 共 36 行
JAVA
36 行
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 + =
减小字号Ctrl + -
显示快捷键?