首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Fatwire内容仅在发布后首次获取

Fatwire内容仅在发布后首次获取
EN

Stack Overflow用户
提问于 2013-06-05 20:44:11
回答 1查看 208关注 0票数 1
代码语言:javascript
复制
@Autowired
private xxx abc;

protected void doGet(HttpServletRequest request,
        HttpServletResponse response) throws ServletException, IOException {
    doPost(request, response);
}

protected void doPost(HttpServletRequest request,
        HttpServletResponse response) throws ServletException, IOException {
    System.out.println("Inside the do Servlet!!!");
    String pageId = request.getParameter("pageId");
    abc.resetSessionVariables();
    FatwireContent content=new FatwireContent();
    abc.setFatwireContent(content);

    System.out.println(abc.retrieveFatWireContent(
                    "xxxx", "xxxx"));

    abc.getFatwireContent().setImportantinformation(
            abc.retrieveFatWireContent(
                    "xxxx", "xxxx"));
    abc.getFatwireContent().setMainlegalfootnote(
            abc.retrieveFatWireContent(
                    "xxxx", "xxxx"));
    abc.getFatwireContent().setMethodology(
            abc.retrieveFatWireContent(
                    "RetirementAdvisorTool", "Methodology"));
    abc.getFatwireContent().setThingstoImproveOutcome(abc.retrieveFatWireContent(
                    "xxxx", "xxxx"));




    if (pageId != null && "Step1".equals(pageId))
        response.sendRedirect("xxxx.faces");
    else
        response.sendRedirect("xxxx.faces");
}

以上代码仅在发布后第一次填充fatwire内容。所有其他时间,我都可以看到fatwire内容被打印出来,但页面中没有任何内容。fatwire内容正在检索纯htmls。是否与jsp编译生命周期有关??

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-06-06 14:13:24

Logging the invoked managed bean action in a PhaseListener

在阶段侦听器中添加了该方法,现在它可以正常工作。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16940288

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档