this.path = path;
}
public String render() {
StringWriter writer = new StringWriter();
InternalHttpServletResponse response = new InternalHttpServletResponse(writer);
response.setCharacterEncoding(this.characterEncoding);
response.setContentType(this.contentType);
response.setLocale(this.locale);
try {
request.getRequestDispatcher(this.path).include(this.request, response);
}
catch (Exception e) {
throw new RenderingException("Error while rendering a component of type: " + this.getClass().getName(), e);