org.febit.wit.support.springmvc3.WitView Maven / Gradle / Ivy
// Copyright (c) 2013-2016, febit.org. All Rights Reserved.
package org.febit.wit.support.springmvc3;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.view.AbstractTemplateView;
/**
*
* @author zqq90
*/
public class WitView extends AbstractTemplateView {
private WitViewResolver resolver;
public void setResolver(WitViewResolver 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