Package org.springframework.web.servlet.view

Examples of org.springframework.web.servlet.view.RedirectView


    public View handle(
        HttpServletRequest request,
        HttpServletResponse response
    ) throws Exception
    {
        return new RedirectView(SiteMap.JOBS, true);
    }
View Full Code Here


            quartzManagementService.enableScheduler();
        } else {
            quartzManagementService.disableScheduler();
        }

        return new RedirectView(SiteMap.SYSTEM_STATE, true);
    }
View Full Code Here

        return modelAndView;
    }

    @RequestMapping(value = "/favicon.ico", method = RequestMethod.GET)
    public ModelAndView getFavicon() {
        return new ModelAndView(new RedirectView("/static/img/favicon.gif"));
    }
View Full Code Here

        return modelAndView;
    }

    @RequestMapping(value = "/favicon.ico", method = RequestMethod.GET)
    public ModelAndView getFavicon() {
        return new ModelAndView(new RedirectView("/static/img/favicon.gif"));
    }
View Full Code Here

    if (user == null) {
      // TODO: L18N
      return new ModelAndView("/login.jsp", "message", "Invalid credentials, login failed.");
    } else {
      request.getSession().setAttribute("user", user);
      return new ModelAndView(new RedirectView("dvdLibrary.htm"));
    }
  }
View Full Code Here

    personalInfoService.changeUserPortrait(ownerId, portraitFile);
    user.setPortrait(portraitFile);
    WebHelper.setSessionAttribute(null, Constant.SESSION_USER, user);

    String url = buildRecirectPath("/wo/myWo");
    ModelAndView view = new ModelAndView(new RedirectView(url));
    return view;
  }
View Full Code Here

  }

  //FIXME 不要相对路径
  @RequestMapping(value = "/delete/{id}/{curpage}", method = RequestMethod.GET)
  public RedirectView deleteShortMessage(@PathVariable long id,@PathVariable int curpage) {
    RedirectView rv = new RedirectView();
    User user = (User) WebHelper.getSessionAttribute(null, Constant.SESSION_USER);
    if (user != null && user.getId() != 0) {
      shortMessageService.deleteShortMessage(id, user.getId());
      rv.setUrl("../../owner/" + user.getId() + ".html?curpage="+curpage);
    }
    return rv;
  }
View Full Code Here

    // personalInfoService.changeUserPortrait(ownerId, portraitFile);
    // spot.setPortrait(portraitFile);
    WebHelper.setSessionAttribute(null, Constant.SESSION_USER, user);

    String url = buildRecirectPath("/spot/" + spotId);
    ModelAndView view = new ModelAndView(new RedirectView(url));
    return view;
  }
View Full Code Here

    if (returnRefId == 0 || returnRefId == null) {
      mav.setViewName(ViewPaths.SPOT_NOTFOUND);
      return mav;
    }
    String url = buildRecirectPath("/spot/" + spotId);
    mav.setView(new RedirectView(url));
    return mav;
  }
View Full Code Here

        /**
         * 做成ajax方式的递交
         */
        // map.put("PostSuccess", true);
        String url = buildRecirectPath("/spot/" + spotId);
        mav.setView(new RedirectView(url));
        return mav;
      }
      mav.setViewName(ViewPaths.SPOTREFRENCE_ADD);
      return mav;
    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of org.springframework.web.servlet.view.RedirectView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.