@Override
protected void doHelp(RenderRequest request, RenderResponse response) throws PortletException, IOException {
String lang = request.getLocale().getLanguage();
String templatePath;
if(HELP_TEMPLATES.containsKey(lang)) {
templatePath = HELP_TEMPLATES.get(lang);
} else {
templatePath = HELP_TEMPLATES.get(StringPool.BLANK);
}
Map<String, Object> ctx = Collections.singletonMap("ns", response.getNamespace());
this.renderTemplate(request, response, ctx, templatePath);
}
FlashlightSearchPortlet.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:flashlight-search
作者:
评论列表
文章目录