Package org.springframework.web.servlet.view

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


        Session session = context.getManager().findSession(sid);
        if (session != null) {
            session.getSession().removeAttribute(attrName);
        }

        return new ModelAndView(new RedirectView(request.getContextPath() + getViewName() + "?"+request.getQueryString()));
    }
View Full Code Here


        getContainerWrapper().getTomcatContainer().listContextJsps(context, summary, compile);

        session.setAttribute(SUMMARY_ATTRIBUTE, summary);

        if (compile) {
            return new ModelAndView(new RedirectView(request.getRequestURI()+"?webapp="+(contextName.length() == 0 ? "/" : contextName)));
        } else {
            return new ModelAndView(getViewName(), "summary", summary);
        }
    }
View Full Code Here

                session.setAttribute(DisplayJspController.SUMMARY_ATTRIBUTE, summary);
            } else {
                logger.error("source is not passed, nothing to do");
            }
        }
        return new ModelAndView(new RedirectView(request.getContextPath() + ServletRequestUtils.getStringParameter(request, "view", getViewName()) + "?" + request.getQueryString()));
    }
View Full Code Here

public class DiscardCompiledJspController extends ContextHandlerController {

    protected ModelAndView handleContext(String contextName, Context context, HttpServletRequest request, HttpServletResponse response) throws Exception {
        getContainerWrapper().getTomcatContainer().discardWorkDir(context);
        return new ModelAndView(new RedirectView(request.getContextPath() + getViewName() + "?" + request.getQueryString()));
    }
View Full Code Here

    }

    protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception {
        String connectorName = ServletRequestUtils.getRequiredStringParameter(request, "cn");
        collectorBean.reset(connectorName);
        return new ModelAndView(new RedirectView(request.getContextPath() + getViewName()));
    }
View Full Code Here

        } else {
            Runtime.getRuntime().gc();
            logger.debug("Advised Garbage Collection");
        }
        logger.debug("Redirected to "+redirectURL);
        return new ModelAndView(new RedirectView(redirectURL));
    }
View Full Code Here

                                         HttpServletRequest request, HttpServletResponse response) throws Exception {

        String attrName = ServletRequestUtils.getStringParameter(request, "attr");
        context.getServletContext().removeAttribute(attrName);

        return new ModelAndView(new RedirectView(request.getContextPath() + getViewName() + "?" + request.getQueryString()));
    }
View Full Code Here

        } catch (Exception e) {
            request.setAttribute("errorMessage", e.getMessage());
            logger.error(e);
            return new ModelAndView(new InternalResourceView(getViewName()));
        }
        return new ModelAndView(new RedirectView(request.getContextPath() + getViewName() + (isPassQueryString() ? "?" + request.getQueryString() : "")));
    }
View Full Code Here

        if (referer != null) {
            redirectURL = referer.replaceAll(replacePattern, "");
        } else {
            redirectURL = request.getContextPath() + getViewName();
        }
        return new ModelAndView(new RedirectView(redirectURL));
    }
View Full Code Here

                request.setAttribute("errorMessage", getMessageSourceAccessor().getMessage("probe.src.reset.datasource.c3p0"));
            }

        }
        logger.debug("Redirected to " + redirectURL);
        return new ModelAndView(new RedirectView(redirectURL));
    }
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.