Package org.springframework.web.servlet

Examples of org.springframework.web.servlet.ModelAndView


*/
public class ListAppFiltersController extends ContextHandlerController {
    protected ModelAndView handleContext(String contextName, Context context,
                                         HttpServletRequest request, HttpServletResponse response) throws Exception {
        List appFilters = ApplicationUtils.getApplicationFilters(context);
        return new ModelAndView(getViewName(), "appFilters", appFilters);
    }
View Full Code Here


    protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception {

        boolean logFound = false;

        ModelAndView modelAndView = null;

        String logType = ServletRequestUtils.getStringParameter(request, "logType");
        String webapp = ServletRequestUtils.getStringParameter(request, "webapp");
        boolean context = ServletRequestUtils.getBooleanParameter(request, "context", false);
        boolean root = ServletRequestUtils.getBooleanParameter(request, "root", false);
View Full Code Here

    }

    protected ModelAndView handleLogFile(HttpServletRequest request, HttpServletResponse response, LogDestination logDest)
            throws Exception {

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

*/
public class ListAppFilterMapsController extends ContextHandlerController {
    protected ModelAndView handleContext(String contextName, Context context,
                                         HttpServletRequest request, HttpServletResponse response) throws Exception {
        List filterMaps = getContainerWrapper().getTomcatContainer().getApplicationFilterMaps(context);
        return new ModelAndView(getViewName(), "filterMaps", filterMaps);
    }
View Full Code Here

                    addDbMetaDataEntry(dbMetaData, "probe.jsp.dataSourceTest.dbMetaData.dbProdVersion", md.getDatabaseProductVersion());
                    addDbMetaDataEntry(dbMetaData, "probe.jsp.dataSourceTest.dbMetaData.jdbcDriverName", md.getDriverName());
                    addDbMetaDataEntry(dbMetaData, "probe.jsp.dataSourceTest.dbMetaData.jdbcDriverVersion", md.getDriverVersion());
//                    addDbMetaDataEntry(dbMetaData, "probe.jsp.dataSourceTest.dbMetaData.jdbcVersion", String.valueOf(md.getJDBCMajorVersion()));

                    return new ModelAndView(getViewName(), "dbMetaData", dbMetaData);
                } finally {
                    conn.close();
                }
            } catch (SQLException e) {
                String message = getMessageSourceAccessor().getMessage("probe.src.dataSourceTest.connection.failure", new Object[] { e.getMessage() });
                logger.error(message, e);
                request.setAttribute("errorMessage", message);
            }
        }

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

   
    @RolesAllowed("ADMINISTRATOR")
    @LogDebug(loggerClass=SecurityAction.class)
    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception
    {
        return new ModelAndView("reached");
    }
View Full Code Here

    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception
    {
        Map<String, Object> result = new HashMap<String, Object>();
        result.put("actionResult", 100);
        result.put("anotherActionResult", "A result");
        return new ModelAndView("reached", result);
    }
View Full Code Here

   
    @PermitAll
    @LogDebug(loggerClass=SecurityAction.class)
    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception
    {
        return new ModelAndView("reached");
    }
View Full Code Here

   
    @PermitAll
    @LogDebug(loggerClass=Action.class)
    public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception
    {
        return new ModelAndView("reached");
    }
View Full Code Here

    {
        AnnotatedTrivialObject to = new AnnotatedTrivialObject();
        to.setAnInteger(1000);
        Errors errors = systemValidator.validateObject(to);
        log.info(errors);
        return new ModelAndView("end");
    }
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.