本文整理匯總了Java中org.easyrec.service.web.DisplayService類的典型用法代碼示例。如果您正苦於以下問題:Java DisplayService類的具體用法?Java DisplayService怎麽用?Java DisplayService使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
DisplayService類屬於org.easyrec.service.web包,在下文中一共展示了DisplayService類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: doEndTag
import org.easyrec.service.web.DisplayService; //導入依賴的package包/類
public int doEndTag() throws javax.servlet.jsp.JspTagException {
ServletContext servletContext = this.pageContext.getServletContext();
ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(servletContext);
this.displayService = (DisplayService) context.getBean("displayService");
try {
String stringRep = this.displayService.display(this.stats);
this.pageContext.getOut().write(stringRep);
} catch (java.io.IOException e) {
throw new JspTagException("IO Error: " + e.getMessage());
}
return EVAL_PAGE;
}
示例2: doEndTag
import org.easyrec.service.web.DisplayService; //導入依賴的package包/類
public int doEndTag() throws javax.servlet.jsp.JspTagException {
ServletContext servletContext = this.pageContext.getServletContext();
ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(servletContext);
this.displayService = (DisplayService) context.getBean("displayService");
try {
String stringRep = this.displayService.displayXml(this.xml);
this.pageContext.getOut().write(stringRep);
} catch (java.io.IOException e) {
throw new JspTagException("IO Error: " + e.getMessage());
}
return EVAL_PAGE;
}