Package org.springframework.web.servlet.view

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


    Chapter chapter = (Chapter) command;
    chapter.setCreatedOn(new Date());
    chapterManager.storeChapter(chapter);

    return new ModelAndView(new RedirectView(getSuccessView()));
  }
View Full Code Here


    locationManager.incrementOrStoreLocation(guest.getLatitude(),
        guest.getLongitude());

    //return new ModelAndView(
        //new RedirectView("/signUp.jsp?cc=" + guest.getCountry()));
    return new ModelAndView(new RedirectView("/signUp.jsp"));
  }
View Full Code Here

    chapter.setMailingList(cmd.getMailingList());
    chapter.setAdministrators(cmd.getAdministrators());
    chapter.setDescription(cmd.getDescription());
    chapterManager.storeChapter(chapter);

    return new ModelAndView(new RedirectView(getSuccessView()));
  }
View Full Code Here

      return new ModelAndView("error", "errorText", errorText);
    }

    countryManager.storeCountry((Country) command);

    return new ModelAndView(new RedirectView(getSuccessView()));
  }
View Full Code Here

      event.addTopic(cmd.getCustomTopic());
    }

    eventManager.storeEvent(event);

    return new ModelAndView(new RedirectView(getSuccessView() + "?id=" +
        chapter.getId() + "&t=events"));
  }
View Full Code Here

    protected ModelAndView onSubmit(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception {
       
        String actionName = RequestUtils.getStringParameter(request, "actionName", null);
        if (actionName != null) {
            setSuccessView(actionName);
            ModelAndView mv = new ModelAndView(new RedirectView(getSuccessView()));
            mv.addObject(OAFormConsts.GET_RETURN_PAGE, getBeanNameAsAction());
            OARequestUtil.putArray(request, mv);
            return mv;
        } else {
            setSuccessView(viewResolver.getListView());           
            return new ModelAndView(new RedirectView(getSuccessView()));
        }
    }      
View Full Code Here

    public ModelAndView deleteRegisteredService(
        final HttpServletRequest request, final HttpServletResponse response) {
        final String id = request.getParameter("id");
        final long idAsLong = Long.parseLong(id);

        final ModelAndView modelAndView = new ModelAndView(new RedirectView(
            "/services/manage.html", true), "status", "deleted");


        final RegisteredService r = this.servicesManager.delete(idAsLong);
View Full Code Here

        final RegisteredService service = (RegisteredService) command;

        this.servicesManager.save(service);
        logger.info("Saved changes to service " + service.getId());

        final ModelAndView modelAndView = new ModelAndView(new RedirectView(
            "/services/manage.html#" + service.getId(), true));
        modelAndView.addObject("action", "add");
        modelAndView.addObject("id", service.getId());

        return modelAndView;
View Full Code Here

        if (log.isDebugEnabled()) {
            log.debug("Error getting flow information for URL:"
                + urlToRedirectTo, exception);
        }

        return new ModelAndView(new RedirectView(urlToRedirectTo));
    }
View Full Code Here

            this.ticketGrantingTicketCookieGenerator.removeCookie(response);
            this.warnCookieGenerator.removeCookie(response);
        }

        if (this.followServiceRedirects && service != null) {
            return new ModelAndView(new RedirectView(service));
        }

        return new ModelAndView(this.logoutView);
    }
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.