All Downloads are FREE. Search and download functionalities are using the official Maven repository.

webit.script.support.springmvc3.WebitView Maven / Gradle / Ivy

// Copyright (c) 2013-2014, Webit Team. All Rights Reserved.
package webit.script.support.springmvc3;

import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.view.AbstractTemplateView;

/**
 *
 * @author Zqq
 */
public class WebitView extends AbstractTemplateView {

    private WebitViewResolver resolver;

    public void setResolver(WebitViewResolver resolver) {
        this.resolver = resolver;
    }

    @Override
    protected void renderMergedTemplateModel(Map model, HttpServletRequest request, HttpServletResponse response) throws Exception {
        model.put("request", request);
        model.put("response", response);
        this.resolver.render(getUrl(), model, request, response);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy