?? customlable_action.java
字號:
package com.v246;
import org.apache.struts.action.*;
import javax.servlet.http.*;
public class CustomLable_action extends org.apache.struts.action.Action
{
public ActionForward execute(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response)
{
CustomLable_form custom=(CustomLable_form)form;
CustomLable_bean bean=new CustomLable_bean();
String re=null;
String tmp=null;
try
{
tmp=bean.addCustomLable(custom);//執行數據庫寫入并接收返回信息
if(tmp.equals("error"))//如果返回error則查找出錯頁
{
re="customError";
}
else//否則查找正確頁面
{
re="custom";
}
}
catch(Exception e)
{
e.printStackTrace();
}
request.setAttribute("custom",custom);
return mapping.findForward(re);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -