📄 u04a1aciton.java
字号:
package cn.hope.front.action;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.apache.commons.lang.StringUtils;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;
import cn.hope.front.bo.U04A11BO;
import cn.hope.front.bo.U04A1BO;
import cn.hope.front.bo.U04TTestInfoBO;
import cn.hope.front.pojo.TTestInfo;
import cn.hope.front.pojo.U07CommonListVO;
public class U04A1Aciton extends DispatchAction {
public ActionForward find(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
U07CommonListVO cl_vo = new U07CommonListVO();
U04TTestInfoBO u04TTestInfoBO = new U04TTestInfoBO();
int start = 0;
boolean isEq = false;
if (StringUtils.isNotEmpty(request.getParameter("start"))) {
start = Integer.parseInt(request.getParameter("start"));
}
if (StringUtils.isNotEmpty(request.getParameter("isEq"))) {
isEq = true;
}
cl_vo = u04TTestInfoBO.aroundValue(start,isEq);
System.out.println(cl_vo);
HttpSession session=request.getSession();
session.setAttribute("value",cl_vo);
return mapping.findForward("a1");
}
public ActionForward go(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
List list = null;
U04A11BO u04A11BO = new U04A11BO();
list = u04A11BO.aroundsubject();
HttpSession session=request.getSession();
session.setAttribute("subject",list);
return mapping.findForward("a11");
}
public ActionForward edit(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
TTestInfo tTestInfo = new TTestInfo();
U04TTestInfoBO u04TTestInfoBO = new U04TTestInfoBO();
String[] idv = request.getParameterValues("op_check");
U04A1BO u04A1BO = new U04A1BO();
if(idv!=null){
for(int i=0;i<idv.length;i++){
System.out.println(u04A1BO.searchID(idv[i]));
if(u04A1BO.searchID(idv[i]).size()==0){
tTestInfo = u04TTestInfoBO.info(idv[i]);
tTestInfo.setFlag("1");
u04TTestInfoBO.updates(tTestInfo);
}
}
}
return mapping.findForward("a1a1");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -