有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java Fatwire内容仅在发布后第一次获取

@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内容正在检索纯HTML。是否与jsp遵从生命周期有关


共 (1) 个答案