📄 docustomfinderdetailaction.java~1~
字号:
package loginejb.struts;
import loginejb.CustomDelegate;
import loginejb.CustomDTO;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionForm;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class DoCustomFinderDetailAction
extends Action {
public ActionForward execute(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse) {
try {
CustomDTOActionForm customDTOActionForm = (CustomDTOActionForm)
actionForm;
CustomDelegate customDelegate = new CustomDelegate();
CustomDTO customDTO = customDelegate.customFindByPrimaryKey();
customDTOActionForm.setId(customDTO.getId());
httpServletRequest.setAttribute("customDTOActionForm",
customDTOActionForm);
}
catch (Exception ex) {
httpServletRequest.setAttribute("message",
"Error getting details for dto. : " +
ex.getMessage());
return (actionMapping.findForward("unknown-error"));
}
return (actionMapping.findForward("customFinderResultsDetail"));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -