📄 findmycreditaction.java
字号:
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.eatery.credit.action;
import java.io.IOException;
import java.io.PrintWriter;
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.eatery.po.Credit;
import com.eatery.service.CreditService;
/**
* MyEclipse Struts
* Creation date: 06-11-2007
*
* XDoclet definition:
* @struts.action validate="true"
*/
public class FindMyCreditAction extends Action {
private CreditService service;
public CreditService getService() {
return service;
}
public void setService(CreditService service) {
this.service = service;
}
public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws IOException {
int uid=Integer.parseInt(request.getParameter("uid"));
Credit credit=service.findMyCredit(uid);
response.setContentType("text/html; charset=UTF-8");
PrintWriter out = response.getWriter();
out.print("<table border=1 width=120 bordercolor='#CB7F0C'>");
out.print("<tr>");
out.print("<td style='color:red;font-size=12px;font-weight: bold;' width='60px' height='30px' align='center'>姓 名:</td>");
out.print("<td style='color:red;font-size=12px;' align='center'>"+credit.getUserInfo().getURealName()+"</td>");
out.print("</tr>");
out.print("<tr>");
out.print("<td style='color:red;font-size=12px;font-weight: bold;' width='60px' height='30px' align='center'>积 分:</td>");
out.print("<td style='color:red;font-size=12px;' align='center'>"+credit.getUCount()+"</td>");
out.print("</tr>");
out.print("</table>");
return null;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -