action里能否只执行逻辑不跳转页面
publicActionForwardaddSubmit(ActionMappingactionMapping,ActionFormform,HttpServletReq...
public ActionForward addSubmit(ActionMapping actionMapping,
ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
try {
YwlsxxFormBean ywlsxxForm = (YwlsxxFormBean)form;
ywlsxxForm.setId(ywlsxxFacade.findSeqKey("YWLSXX",10));
ywlsxxFacade.addYwlsxx(ywlsxxForm);
return null } catch (Exception e) {
return (forwardErrorPage(request, actionMapping, ResourceReader.getMessageFromResource("error.wxjj.ywlsxx.add"),e)); 就是这个action ,如何改才能执行逻辑但不跳转空页面呢 展开
ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
try {
YwlsxxFormBean ywlsxxForm = (YwlsxxFormBean)form;
ywlsxxForm.setId(ywlsxxFacade.findSeqKey("YWLSXX",10));
ywlsxxFacade.addYwlsxx(ywlsxxForm);
return null } catch (Exception e) {
return (forwardErrorPage(request, actionMapping, ResourceReader.getMessageFromResource("error.wxjj.ywlsxx.add"),e)); 就是这个action ,如何改才能执行逻辑但不跳转空页面呢 展开
6个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询