📄 showplaninfoaction.java
字号:
/* 创建日期:Dec 15, 2006
* 作 者:朱 闰
* 公 司:安徽通途信息技术有限公司
*/
package com.tongtu.Action.planManage;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import com.tongtu.Action.TopBaseAction;
import com.tongtu.util.CurrentUser;
import com.tongtu.util.Page;
import com.tongtu.util.PlanDetail;
import com.tongtu.util.UserInfo;
public class ShowPlanInfoAction extends TopBaseAction
{
public ActionForward execute(ActionMapping actionMapping,
ActionForm actionForm, HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse) {
String planid = httpServletRequest.getParameter("planId");//
int planId = 0;
if(planid!=null) planId = Integer.parseInt(planid);
PlanDetail pd = getPlanHelper().getPlanInfoById(planId);//获取计划信息
httpServletRequest.setAttribute("planDetail",pd);
return actionMapping.findForward("success");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -