Package org.springframework.web.servlet

Examples of org.springframework.web.servlet.ModelAndView


   * Uses looks for view named "messageView" in application context
   */
  @SpringView()
  public ModelAndView getResult()
  {
    return new ModelAndView("messageView");
  }
View Full Code Here


   * Uses looks for view named "message" using resolver "viewResolver" obtained from application context
   */
  @SpringView(resolver = "viewResolver")
  public ModelAndView getResult()
  {
    return new ModelAndView("message");
  }
View Full Code Here

        for (Iterator i = ctxs.iterator(); i.hasNext();) {
            Context ctx = (Context) i.next();
            servletMaps.addAll(ApplicationUtils.getApplicationServletMaps(ctx));
        }

        return new ModelAndView(getViewName(), "servletMaps", servletMaps);
    }
View Full Code Here

                }
                servlets.addAll(appServlets);
            }
        }

        return new ModelAndView(getViewName(), "servlets", servlets);
    }
View Full Code Here

                    stack.add(tse);
                }
            }
        }

        return new ModelAndView(getViewName(), "stack", stack).addObject("threadName", threadName);
    }
View Full Code Here

        if (isExtendedInfo() && getStatsCollection() != null) {
            String avgStatisticName = "app.avg_proc_time." + app.getName();
            app.setAvgTime(getStatsCollection().getLastValueForStat(avgStatisticName));
        }

        return new ModelAndView(getViewName())
                .addObject("app", app)
                .addObject("no_resources", Boolean.valueOf(!getContainerWrapper().getResourceResolver().supportsPrivateResources()))
                .addObject("collectionPeriod", new Long(getCollectionPeriod()));
    }
View Full Code Here

                        Session session = manager.findSession(sessionId);
                        if (session != null && session.isValid()) {
                            session.expire();
                        }
                    } else {
                        return new ModelAndView("errors/paramerror");
                    }
                } else {
                    return new ModelAndView("errors/paramerror");
                }
            }
        }
        return new ModelAndView(new InternalResourceView(getViewName()));
    }
View Full Code Here

        String sessionID= ServletRequestUtils.getStringParameter(request, "sid");
        Session session = context.getManager().findSession(sessionID);
        if (session != null) {
            session.expire();
        }
        return new ModelAndView(new InternalResourceView(getViewName()));
    }
View Full Code Here

        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

TOP

Related Classes of org.springframework.web.servlet.ModelAndView

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.